84% wp-resume-shortcode

Code Review | WP Resume Shortcode

WordPress plugin WP Resume Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: wp-resume-shortcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2014
  • Latest release: Jan 15, 2015
  • Number of updates: 24
  • Update frequency: every 7.5 days
  • Top authors: kicoe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,374 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.04ms] Passed 4 tests

This is a short check of server-side resources used by WP Resume Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.86 ▼4.57
Dashboard /wp-admin3.33 ▼0.0146.37 ▼16.81
Posts /wp-admin/edit.php3.39 ▲0.0350.00 ▲2.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.05 ▼13.25
Media Library /wp-admin/upload.php3.26 ▲0.0236.89 ▲5.01
WP Resume SC /wp-admin/options-general.php?page=wordpress_resume_shortcode3.2231.15

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Resume Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.781.66 ▼0.1241.49 ▲5.41
Dashboard /wp-admin2,207 ▲254.84 ▼0.06107.08 ▲6.0938.21 ▼0.98
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0441.40 ▲8.4535.55 ▲0.30
Add New Post /wp-admin/post-new.php1,537 ▲923.24 ▲5.03679.17 ▲35.6260.38 ▲7.37
Media Library /wp-admin/upload.php1,392 ▲14.21 ▲0.0396.23 ▼4.6842.35 ▼1.76
WP Resume SC /wp-admin/options-general.php?page=wordpress_resume_shortcode8412.2125.4028.08

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-resume-shortcode/wordpress-resume-shortcode.php:19

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: shortcode, resume

wp-resume-shortcode/wordpress-resume-shortcode.php 92% from 13 tests

This is the main PHP file of "WP Resume Shortcode" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-resume-shortcode.php" instead of "wordpress-resume-shortcode.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected155 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35518155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin