84% color-help

Code Review | Color Help

WordPress plugin Color Help scored84%from 54 tests.

About plugin

  • Plugin page: color-help
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 15, 2013
  • Latest release: Sep 27, 2013
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: ubernaut (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Color Help
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.33 ▼4.36
Dashboard /wp-admin3.31 ▼0.0458.48 ▼4.72
Posts /wp-admin/edit.php3.36 ▲0.0050.06 ▲0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.44 ▼15.36
Media Library /wp-admin/upload.php3.23 ▲0.0035.01 ▼2.82

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Color Help
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.15 ▼1.482.07 ▼0.0745.88 ▲5.77
Dashboard /wp-admin2,205 ▲204.87 ▼0.09105.55 ▲2.0146.79 ▲5.30
Posts /wp-admin/edit.php2,091 ▼32.05 ▲0.0134.15 ▼6.5339.51 ▲5.00
Add New Post /wp-admin/post-new.php1,516 ▼1217.86 ▼0.41668.96 ▼12.2548.48 ▼3.05
Media Library /wp-admin/upload.php1,393 ▲54.20 ▲0.0296.12 ▼12.3443.85 ▼7.92

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/color-help/color-help.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === color-help === )
  • Screenshots: These screenshots do not have images: #1 (In WordPress 3.6.), #2 (With MP6 active.)
The official readme.txt might help

color-help/color-help.php Passed 13 tests

The principal PHP file in "Color Help" v. 0.1 is loaded by WordPress automatically on each request
58 characters long description:
This plugin changes the color of the help tab in wp-admin.

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
Success! There were no dangerous files found in this plugin15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1018
PHP1097

PHP code Passed 2 tests

An overview 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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
screenshot-2.png5.54KB2.61KB▼ 52.84%
screenshot-1.png14.55KB3.66KB▼ 74.87%