84% jsm-decolorize

Code Review | JSM Decolorize Menu Icons

WordPress plugin JSM Decolorize Menu Icons scored84%from 54 tests.

About plugin

  • Plugin page: jsm-decolorize
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Aug 29, 2023
  • Number of updates: 87
  • Update frequency: every 6.8 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,112 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.27ms] Passed 4 tests

An overview of server-side resources used by JSM Decolorize Menu Icons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.66 ▲0.42
Dashboard /wp-admin3.31 ▼0.0345.62 ▼14.80
Posts /wp-admin/edit.php3.36 ▲0.0145.51 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.26 ▼26.07
Media Library /wp-admin/upload.php3.23 ▲0.0131.53 ▼3.36

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

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

Browser metrics Passed 4 tests

JSM Decolorize Menu Icons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.13 ▼1.265.22 ▲3.2842.02 ▼1.42
Dashboard /wp-admin2,209 ▲245.91 ▲1.03109.77 ▲5.2243.79 ▲5.26
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0140.25 ▼2.4934.93 ▼0.56
Add New Post /wp-admin/post-new.php1,533 ▲1223.20 ▼0.14664.64 ▲27.4058.48 ▲8.03
Media Library /wp-admin/upload.php1,391 ▲94.19 ▼0.1692.25 ▼7.7042.53 ▼2.84

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jsm-decolorize/jsm-decolorize.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: grayscale, color, admin, icon, menu

jsm-decolorize/jsm-decolorize.php Passed 13 tests

The main PHP script in "JSM Decolorize Menu Icons" version 1.0.0 is automatically included on every request by WordPress
82 characters long description:
A simple plugin to decolorize the colorful admin menu icons added by some plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1162525
Markdown15015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.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

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