74% gear5

Code Review | Gear5 Plugin

WordPress plugin Gear5 Plugin scored74%from 54 tests.

About plugin

  • Plugin page: gear5
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Aug 1, 2014
  • Number of updates: 14
  • Update frequency: every 2.6 days
  • Top authors: rgombash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,181 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.88MB] [CPU: ▼36.24ms] Passed 4 tests

Server-side resources used by Gear5 Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0629.89 ▼9.15
Dashboard /wp-admin3.07 ▼0.2423.66 ▼28.03
Posts /wp-admin/edit.php3.07 ▼0.2924.17 ▼29.30
Add New Post /wp-admin/post-new.php3.07 ▼2.8226.62 ▼76.60
Media Library /wp-admin/upload.php3.07 ▼0.1623.43 ▼11.04
Gear5 /wp-admin/options-general.php?page=Gear53.0725.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gear5 Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.351.87 ▼0.0146.43 ▲4.90
Dashboard /wp-admin2,199 ▲195.55 ▼0.1084.95 ▼7.7339.45 ▼4.19
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0139.36 ▲0.5835.93 ▼8.03
Add New Post /wp-admin/post-new.php1,547 ▲1323.16 ▼0.03640.87 ▼23.7551.41 ▼12.23
Media Library /wp-admin/upload.php1,398 ▼54.27 ▲0.0199.99 ▼1.0141.93 ▼3.67
Gear5 /wp-admin/options-general.php?page=Gear59162.1236.7632.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/gear5/gear5-settings.php+75
    Undefined index: example_text
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • gear5_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Gear5
    • > Notice in wp-content/plugins/gear5/gear5-settings.php+75
    Undefined index: example_text

SRP Passed 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
The SRP test was a success

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

gear5/gear5.php 92% from 13 tests

The main PHP file in "Gear5 Plugin" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected170 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26852170

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods317.65%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected