10% wodhopper

Code Review | WODHOPPER

WordPress plugin WODHOPPER scored 10% from 54 tests.

About plugin

  • Plugin page: wodhopper
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.8.1
  • First release: Sep 5, 2012
  • Latest release: Jan 9, 2013
  • Number of updates: 16
  • Update frequency: every 7.8 days
  • Top authors: wodhopper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,409 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wodhopper/wodhopper.php+51
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.82MB] [CPU: ▼190.13ms] Passed 4 tests

Analyzing server-side resources used by WODHOPPER
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼1.056.17 ▼32.73
Dashboard /wp-admin1.82 ▼1.236.52 ▼42.06
Posts /wp-admin/edit.php1.83 ▼1.287.18 ▼41.52
Add New Post /wp-admin/post-new.php1.83 ▼3.617.22 ▼644.21
Media Library /wp-admin/upload.php1.83 ▼1.186.85 ▼29.52
WODHOPPER /wp-admin/options-general.php?page=wodhopper1.837.77

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WODHOPPER
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,736 ▲16416.10 ▲0.599.78 ▼3.0149.20 ▼7.50
Dashboard /wp-admin2,972 ▲415.94 ▲0.02140.68 ▼30.74115.45 ▼1.37
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0273.43 ▼1.5792.33 ▲1.57
Add New Post /wp-admin/post-new.php1,501 ▼18218.84 ▲0.03427.70 ▲7.53114.19 ▼7.04
Media Library /wp-admin/upload.php1,812 ▲55.06 ▲0.04154.24 ▲7.77125.96 ▲6.59
WODHOPPER /wp-admin/options-general.php?page=wodhopper1,1642.0663.0582.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wodhopper/wodhopper.php+51
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wodhopper
    • > Notice in wp-content/plugins/wodhopper/util/wodhopper_settings_fields.php+128
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wodhopper/util/wodhopper_options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wodhopper/util/wodhopper_options.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: scoreboard, affiliate, embed, crossfit, wod

wodhopper/wodhopper.php Passed 13 tests

The main file in "WODHOPPER" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Allows WODHOPPER embedding,configuration and management from your WordPress admin blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected378 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP886263308
JavaScript121238
CSS14632

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions21
▷ Named functions21100.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
3 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png133.14KB43.24KB▼ 67.53%
assets/css/images/wodhopper_scoreboard_image.png3.84KB1.48KB▼ 61.42%
mce/wodhopper_scoreboard/scoreboard.png2.46KB1.36KB▼ 44.70%