99% maxicharts-colors-add-on

Code Review | MaxiCharts Colors Add-on

WordPress plugin MaxiCharts Colors Add-on scored 99% from 54 tests.

About plugin

  • Plugin page: maxicharts-colors...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Dec 21, 2017
  • Latest release: Sep 20, 2021
  • Number of updates: 15
  • Update frequency: every 91.3 days
  • Top authors: maxicharts (66.67%)munger41 (40%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,703 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by MaxiCharts Colors Add-on
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.58 ▲13.13
Dashboard /wp-admin3.06 ▲0.0136.06 ▼5.85
Posts /wp-admin/edit.php3.11 ▲0.0143.35 ▼12.66
Add New Post /wp-admin/post-new.php5.42 ▼0.0184.24 ▼568.01
Media Library /wp-admin/upload.php3.00 ▲0.0033.45 ▲0.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

MaxiCharts Colors Add-on: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.83 ▼0.087.82 ▲0.4344.20 ▼1.61
Dashboard /wp-admin2,973 ▲425.97 ▼0.01128.19 ▼9.17114.00 ▲9.36
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0068.27 ▼4.5293.86 ▼4.62
Add New Post /wp-admin/post-new.php1,901 ▲29719.20 ▲0.38362.59 ▼17.27107.42 ▲2.37
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.00143.95 ▼6.67116.20 ▼5.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in maxicharts-colors-add-on/assets to your readme.txt
  • Tags: You are using too many tags: 29 tag instead of maximum 10
The official readme.txt might help

maxicharts-colors-add-on/maxicharts_colors_add_on.php 77% from 13 tests

The main PHP script in "MaxiCharts Colors Add-on" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("maxicharts-colors-add-on.php" instead of "maxicharts_colors_add_on.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected313 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11324313

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin