84% resume-cv

Code Review | Resume / CV

WordPress plugin Resume / CV scored84%from 54 tests.

About plugin

  • Plugin page: resume-cv
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2018
  • Latest release: Jul 3, 2019
  • Number of updates: 25
  • Update frequency: every 20.1 days
  • Top authors: wpamanuke (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /16,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼7.12ms] Passed 4 tests

A check of server-side resources used by Resume / CV
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.20 ▼3.69
Dashboard /wp-admin3.63 ▲0.2948.67 ▼20.66
Posts /wp-admin/edit.php3.68 ▲0.3251.94 ▼1.29
Add New Post /wp-admin/post-new.php6.23 ▲0.3493.58 ▼2.85
Media Library /wp-admin/upload.php3.55 ▲0.3235.92 ▲0.60
Profile /wp-admin/admin.php?page=resumecv_profile_options3.9148.31
Contact /wp-admin/admin.php?page=resumecv_contact_options3.5835.97
Service /wp-admin/admin.php?page=resumecv_service_options3.5832.57
Qualification /wp-admin/admin.php?page=resumecv_qualification_options3.5843.46
Skill Bar /wp-admin/admin.php?page=resumecv_skillbar_options3.5833.43
Education /wp-admin/admin.php?page=resumecv_education_options3.6136.01
Reference /wp-admin/admin.php?page=resumecv_reference_options3.6136.94
Resume CV /wp-admin/admin.php?page=resumecv_options3.5836.50
Award /wp-admin/admin.php?page=resumecv_award_options3.5832.00
Hobbies /wp-admin/admin.php?page=resumecv_hobby_options3.6140.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 421 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Resume / CV
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.27 ▼1.161.85 ▼0.0246.41 ▼0.53
Dashboard /wp-admin2,280 ▲954.94 ▼0.92112.74 ▲10.5342.39 ▼1.75
Posts /wp-admin/edit.php2,166 ▲742.06 ▲0.0143.28 ▲2.3334.35 ▼4.12
Add New Post /wp-admin/post-new.php1,579 ▲5123.44 ▲0.33652.65 ▼48.5560.09 ▲3.91
Media Library /wp-admin/upload.php1,465 ▲834.33 ▲0.1496.50 ▼12.8742.79 ▼2.99
Profile /wp-admin/admin.php?page=resumecv_profile_options1,8226.71135.4057.90
Contact /wp-admin/admin.php?page=resumecv_contact_options1,0491.9732.8627.91
Service /wp-admin/admin.php?page=resumecv_service_options1,1321.9829.7229.08
Qualification /wp-admin/admin.php?page=resumecv_qualification_options1,0511.9633.5830.52
Skill Bar /wp-admin/admin.php?page=resumecv_skillbar_options1,1572.0934.5426.96
Education /wp-admin/admin.php?page=resumecv_education_options1,0751.9129.4527.06
Reference /wp-admin/admin.php?page=resumecv_reference_options1,0511.9830.1827.27
Resume CV /wp-admin/admin.php?page=resumecv_options9072.1727.2527.88
Award /wp-admin/admin.php?page=resumecv_award_options1,0211.9228.2431.35
Hobbies /wp-admin/admin.php?page=resumecv_hobby_options1,2843.2144.7625.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 69× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resume-cv/themes/shark-2/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/resume-cv/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/resume-cv/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/resume-cv/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/resume-cv/themes/shark-2/page.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/resume-cv/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/resume-cv/cmb2/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/resume-cv/themes/shark/parts/service.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resume-cv/includes/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/resume-cv/themes/shark-2/parts/contact.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: resume templates, curiculum vitae, resume, fontawesome, cv...

resume-cv/resume-cv.php 92% from 13 tests

The main PHP script in "Resume / CV" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 471 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin58,838 lines of code in 251 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
CSS181,2461,2509,457
PHP852,2095,9368,407
SVG1912136,553
JavaScript73515191,466
Markdown22140632

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.34
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes811.76%
▷ Concrete classes6088.24%
▷ Final classes00.00%
Methods530
▷ Static methods9217.36%
▷ Public methods43882.64%
▷ Protected methods8816.60%
▷ Private methods40.75%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants545.45%
▷ Class constants654.55%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
cmb2/images/ico-delete.png0.70KB0.72KB0.00%