83% curriculum-vitae-by-osflake

Code Review | Curriculum Vitae (by osFlake)

WordPress plugin Curriculum Vitae (by osFlake) scored83%from 54 tests.

About plugin

  • Plugin page: curriculum-vitae-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Feb 25, 2015
  • Number of updates: 42
  • Update frequency: every 0.1 days
  • Top authors: osflake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.82ms] Passed 4 tests

A check of server-side resources used by Curriculum Vitae (by osFlake)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.82 ▲2.11
Dashboard /wp-admin3.41 ▲0.1148.47 ▲3.46
Posts /wp-admin/edit.php3.53 ▲0.1747.41 ▲3.96
Add New Post /wp-admin/post-new.php6.00 ▲0.1083.66 ▼12.80
Media Library /wp-admin/upload.php3.34 ▲0.1042.53 ▲8.97
CV - category /wp-admin/edit-tags.php?taxonomy=cv-category&post_type=opisy3.3335.53
CV - settings /wp-admin/edit.php?post_type=opisy&page=cv-settings-page3.3133.98
Add new /wp-admin/post-new.php?post_type=opisy3.4851.84
About /wp-admin/edit.php?post_type=opisy&page=cv-about-page3.3134.43
All items /wp-admin/edit.php?post_type=opisy3.3833.20

Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_osflake_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Curriculum Vitae (by osFlake)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14413.40 ▼1.211.68 ▲0.1141.27 ▲0.42
Dashboard /wp-admin2,282 ▲945.06 ▼0.85115.06 ▼2.4143.43 ▼2.39
Posts /wp-admin/edit.php2,177 ▲882.39 ▲0.3436.83 ▼1.4135.39 ▲3.82
Add New Post /wp-admin/post-new.php1,590 ▲5323.66 ▲0.06694.78 ▲25.7848.46 ▼4.70
Media Library /wp-admin/upload.php1,471 ▲834.44 ▲0.25110.25 ▲9.8048.65 ▲6.48
CV - category /wp-admin/edit-tags.php?taxonomy=cv-category&post_type=opisy1,3542.3031.5829.42
CV - settings /wp-admin/edit.php?post_type=opisy&page=cv-settings-page1,1602.4757.3629.30
Add new /wp-admin/post-new.php?post_type=opisy2,4148.05170.3066.56
About /wp-admin/edit.php?post_type=opisy&page=cv-about-page8762.1125.7029.82
All items /wp-admin/edit.php?post_type=opisy1,1622.3738.1329.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_osflake_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/curriculum-vitae-by-osflake/cv-osflake.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/curriculum-vitae-by-osflake/lib/shortcode/cv-shortcode.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/curriculum-vitae-by-osflake/lib/admin/cv-admin.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/curriculum-vitae-by-osflake/lib/menu/cv-menu.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/curriculum-vitae-by-osflake/css/cv-osflake.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/curriculum-vitae-by-osflake/lib/widget/cv-widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: admin, panel, vitae, curriculum, cv...

curriculum-vitae-by-osflake/cv-osflake.php 85% from 13 tests

The principal PHP file in "Curriculum Vitae (by osFlake)" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("curriculum-vitae-by-osflake.php" instead of "cv-osflake.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin674 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP69161396
PO File296150226
CSS17352

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.81MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/h2_trigger.png2.59KB1.59KB▼ 38.58%
screenshot-5.png111.35KB33.70KB▼ 69.74%
screenshot-4.png41.95KB18.51KB▼ 55.87%
img/pin_icon.png11.94KB5.21KB▼ 56.32%
screenshot-3.png211.73KB62.96KB▼ 70.26%