84% impact-hub-supercharger

Code Review | Toolbox and Showroom Supercharger

WordPress plugin Toolbox and Showroom Supercharger scored84%from 54 tests.

About plugin

  • Plugin page: impact-hub-superc...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: May 23, 2016
  • Number of updates: 27
  • Update frequency: every 9.3 days
  • Top authors: nilsnh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.74ms] Passed 4 tests

Analyzing server-side resources used by Toolbox and Showroom Supercharger
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.33 ▼6.56
Dashboard /wp-admin3.37 ▲0.0350.06 ▼12.96
Posts /wp-admin/edit.php3.42 ▲0.0750.45 ▼3.67
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.82 ▼7.77
Media Library /wp-admin/upload.php3.29 ▲0.0742.93 ▲8.12
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=impcthub-resource3.2944.96
Add New /wp-admin/post-new.php?post_type=impcthub-member3.4353.04
Entrepreneur toolbox /wp-admin/edit.php?post_type=impcthub-resource3.3541.58
Member showroom /wp-admin/edit.php?post_type=impcthub-member3.3538.84
Add New /wp-admin/post-new.php?post_type=impcthub-resource3.4555.43
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=impcthub-member3.3039.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
category_children

Browser metrics Passed 4 tests

Checking browser requirements for Toolbox and Showroom Supercharger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲14714.28 ▼0.092.16 ▼0.0844.87 ▲2.57
Dashboard /wp-admin2,260 ▲805.58 ▼0.0385.89 ▼3.2942.15 ▼2.39
Posts /wp-admin/edit.php2,162 ▲622.03 ▲0.0435.39 ▼3.1434.71 ▼0.83
Add New Post /wp-admin/post-new.php1,580 ▲5423.09 ▼0.08735.96 ▲51.4271.31 ▲4.68
Media Library /wp-admin/upload.php1,462 ▲654.14 ▼0.07114.33 ▲11.3147.82 ▲5.04
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=impcthub-resource1,5172.1330.5934.83
Add New /wp-admin/post-new.php?post_type=impcthub-member2,4417.81175.7864.65
Entrepreneur toolbox /wp-admin/edit.php?post_type=impcthub-resource1,2151.9837.4831.88
Member showroom /wp-admin/edit.php?post_type=impcthub-member1,1811.9430.8931.61
Add New /wp-admin/post-new.php?post_type=impcthub-resource2,6607.76180.1458.30
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=impcthub-member1,5172.1328.7133.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • category_children
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function impcthub\\plugin_dir_path() in wp-content/plugins/impact-hub-supercharger/index.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function impcthub\\add_filter() in wp-content/plugins/impact-hub-supercharger/includes/other.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function impcthub\\add_filter() in wp-content/plugins/impact-hub-supercharger/includes/user-role.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function impcthub\\add_shortcode() in wp-content/plugins/impact-hub-supercharger/includes/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function impcthub\\add_action() in wp-content/plugins/impact-hub-supercharger/includes/custom-posts.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: impacthub

impact-hub-supercharger/index.php 92% from 13 tests

"Toolbox and Showroom Supercharger" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("impact-hub-supercharger.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin169 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53214169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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
Namespaces1
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin