74% hm-resume-manager

Code Review | HM Resume Manager

WordPress plugin HM Resume Manager scored74%from 54 tests.

About plugin

  • Plugin page: hm-resume-manager
  • Plugin version: 2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2020
  • Latest release: Jul 14, 2023
  • Number of updates: 51
  • Update frequency: every 24.7 days
  • Top authors: mhmrajib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,801 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲4.98MB] [CPU: ▲26.01ms] Passed 4 tests

Analyzing server-side resources used by HM Resume Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.87 ▲5.4164.90 ▲26.64
Dashboard /wp-admin8.89 ▲5.5578.75 ▲12.11
Posts /wp-admin/edit.php8.89 ▲5.5492.73 ▲40.47
Add New Post /wp-admin/post-new.php9.33 ▲3.44126.02 ▲24.81
Media Library /wp-admin/upload.php8.89 ▲5.6776.61 ▲41.81
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.8966.67

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 258 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
fs_accounts
fs_active_plugins
widget_recent-comments
fs_debug_mode
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for HM Resume Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,175 ▲42915.99 ▲1.618.24 ▲6.2734.27 ▼5.93
Dashboard /wp-admin2,441 ▲2386.90 ▲2.03141.18 ▲34.3446.94 ▲8.69
Posts /wp-admin/edit.php2,347 ▲2473.98 ▲1.9460.63 ▲18.9340.10 ▲2.88
Add New Post /wp-admin/post-new.php1,582 ▲5623.49 ▼0.34657.46 ▼8.2537.08 ▼16.52
Media Library /wp-admin/upload.php1,474 ▲744.77 ▲0.55127.27 ▲20.6356.68 ▲7.27
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,3123.7945.4527.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/hm-resume-manager/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • fs_active_plugins
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • fs_accounts
    • fs_debug_mode
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/hm-resume-manager/admin/view/style.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/hm-resume-manager/admin/view/personal-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hm-resume-manager/admin/view/experience.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hm-resume-manager/admin/view/education.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/hm-resume-manager/front/view/resume.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/hm-resume-manager/admin/view/popup/employment-history.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/hm-resume-manager/admin/view/popup/employment-history-edit.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hm-resume-manager/admin/view/skills.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
5 plugin tags: skills, resume, experience, cv, education

hm-resume-manager/hm-resume-manager.php 92% from 13 tests

The principal PHP file in "HM Resume Manager" v. 2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected48,737 lines of code in 193 files:
LanguageFilesBlank linesComment linesLines of code
PHP1328,12517,24234,237
JavaScript71,2507194,203
CSS20261483,708
SVG2102,684
Sass1536361,796
LESS1536461,786
Markdown1680214
PO File14549109

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity86.17
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,289
▷ Static methods19715.28%
▷ Public methods89469.36%
▷ Protected methods201.55%
▷ Private methods37529.09%
Functions99
▷ Named functions99100.00%
▷ Anonymous functions00.00%
Constants152
▷ Global constants10569.08%
▷ Class constants4730.92%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%