78% cvshout-resume

Code Review | CVShout Resume

WordPress plugin CVShout Resume scored 78% from 54 tests.

About plugin

  • Plugin page: cvshout-resume
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.11-4.9.4
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Nov 2, 2018
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: jdifalco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 880 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.04ms] Passed 4 tests

Analyzing server-side resources used by CVShout Resume
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.09 ▲0.25
Dashboard /wp-admin3.43 ▲0.1347.66 ▲3.92
Posts /wp-admin/edit.php3.55 ▲0.1952.84 ▲11.09
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.57 ▼16.84
Media Library /wp-admin/upload.php3.36 ▲0.1336.54 ▲4.52
Edit Experience /wp-admin/admin.php?page=resume-wizard-experience3.4530.77
Organize /wp-admin/admin.php?page=resume-wizard-organize3.4330.75
Edit Summary /wp-admin/admin.php?page=resume-wizard-summary3.3429.78
Edit Other /wp-admin/admin.php?page=resume-wizard-other3.3930.41
Edit Social /wp-admin/admin.php?page=resume-wizard-social3.3931.42
Edit Skills /wp-admin/admin.php?page=resume-wizard-skills3.3439.58
CVShout Resume /wp-admin/admin.php?page=resume-wizard-start3.3229.84
Edit Education /wp-admin/admin.php?page=resume-wizard-education3.4430.75

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CVShout Resume
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲23413.72 ▼0.686.10 ▲4.3942.67 ▲3.54
Dashboard /wp-admin2,259 ▲715.82 ▲0.94100.23 ▼16.1740.36 ▼4.26
Posts /wp-admin/edit.php2,142 ▲502.03 ▲0.0136.95 ▼5.2337.30 ▲0.05
Add New Post /wp-admin/post-new.php1,557 ▲2923.35 ▲5.24586.66 ▼49.1263.92 ▲12.07
Media Library /wp-admin/upload.php1,438 ▲534.15 ▼0.0999.94 ▼6.8045.88 ▲1.34
Edit Experience /wp-admin/admin.php?page=resume-wizard-experience1,8276.76134.78100.19
Organize /wp-admin/admin.php?page=resume-wizard-organize1,0751.6825.9240.90
Edit Summary /wp-admin/admin.php?page=resume-wizard-summary1,7306.59129.8258.26
Edit Other /wp-admin/admin.php?page=resume-wizard-other1,7666.58118.8560.19
Edit Social /wp-admin/admin.php?page=resume-wizard-social1,6291.6727.0043.46
Edit Skills /wp-admin/admin.php?page=resume-wizard-skills1,0081.8628.4338.66
CVShout Resume /wp-admin/admin.php?page=resume-wizard-start1,5151.8725.4443.60
Edit Education /wp-admin/admin.php?page=resume-wizard-education1,8276.55121.2163.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=resume-wizard-experience
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/experience.php+14
    Undefined index: cvsUpdateExperienceFlag
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/education.php+46
    Undefined index: cvsMsg
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/education.php+50
    Undefined variable: cvs_msg_indicator
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/resume-body.php+6
    Illegal string offset 'cvs_profile_photo_attach_id'
  • 78 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Notice in wp-content/plugins/cvshout-resume/display_resume/include/display-objective.php+7
    Uninitialized string offset: 0
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/resume-body.php+7
    Illegal string offset 'cvs_profile_image_location'
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/include/right-sidebar.php+21
    Illegal string offset 'display-image-radio'
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/include/right-sidebar.php+33
    Illegal string offset 'displayname'
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/include/display-objective.php+5
    Illegal string offset 'objective'
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/include/display-objective.php+5
    Cannot assign an empty string to a string offset
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Warning in wp-content/plugins/cvshout-resume/display_resume/include/display-objective.php+7
    Illegal string offset 'cvs_summary_section_title'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-organize
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/resume-organization.php+15
    Undefined index: cvsUpdateOrganizationFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-summary
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/summary.php+14
    Undefined index: cvsUpdateSummaryFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-summary
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/summary.php+100
    Illegal string offset 'display_objective'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-other
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/other.php+14
    Undefined index: cvsUpdateOtherFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-social
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/network_links.php+14
    Undefined index: cvsUpdateNetworkLinkFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-skills
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/skills.php+14
    Undefined index: cvsUpdateSkillFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+14
    Undefined index: cvsUpdateContactFlag
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+138
    Illegal string offset 'email'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+160
    Illegal string offset 'address_1'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+179
    Illegal string offset 'address_2'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+198
    Illegal string offset 'city'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+217
    Illegal string offset 'state'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+236
    Illegal string offset 'zip'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+255
    Illegal string offset 'country'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+274
    Illegal string offset 'mobile'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+293
    Illegal string offset 'phone'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+298
    Undefined variable: cvs_current_title
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+299
    Undefined variable: cvs_current_tagline
    • > GET request to /wp-admin/admin.php?page=resume-wizard-start
    • > Warning in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php+360
    Illegal string offset 'profile_image_url'
    • > GET request to /wp-admin/admin.php?page=resume-wizard-education
    • > Notice in wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/education.php+14
    Undefined index: cvsUpdateEducationFlag

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/skills.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/summary.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/resume-organization.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/network_links.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/education.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/experience.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/personal-detail-contact.php
    • > /wp-content/plugins/cvshout-resume/include/wpCustomizations/cvshout-edit-my-resume/include/other.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: jobs, jobseeker, human resources, head hunter, resume...

cvshout-resume/cvshout_resume.php 92% from 13 tests

"CVShout Resume" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cvshout-resume.php" instead of "cvshout_resume.php")

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
Good job! No executable or dangerous file extensions detected5,343 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP451,3081403,812
CSS225744934
XML1000388
JavaScript16939209

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
47 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dropDownArrow.png0.24KB0.22KB▼ 9.80%
images/32-pinterest2.png1.83KB1.51KB▼ 17.72%
images/32-blogger.png1.80KB1.51KB▼ 16.51%
images/32-youtube.png0.34KB0.35KB0.00%
images/32-rss.png0.24KB0.25KB0.00%