83% easycpmods-toolbox

Code Review | EasyCPMods Toolbox

WordPress plugin EasyCPMods Toolbox scored83%from 54 tests.

About plugin

  • Plugin page: easycpmods-toolbox
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Jun 25, 2022
  • Number of updates: 83
  • Update frequency: every 23.2 days
  • Top authors: easycpmods (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.38ms] Passed 4 tests

This is a short check of server-side resources used by EasyCPMods Toolbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.66 ▼9.86
Dashboard /wp-admin3.40 ▲0.0545.66 ▼14.90
Posts /wp-admin/edit.php3.45 ▲0.0950.10 ▲3.06
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.10 ▼11.94
Media Library /wp-admin/upload.php3.32 ▲0.0933.55 ▼0.83
EasyCPMods /wp-admin/admin.php?page=ecpm-menu3.2931.67
EasyCPMods Toolbox /wp-admin/admin.php?page=ecpm_etb_settings_page3.2929.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
ecpm_etb_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyCPMods Toolbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.46 ▼0.191.64 ▼0.1642.10 ▼0.49
Dashboard /wp-admin2,232 ▲475.83 ▼0.0195.26 ▼7.0736.47 ▼4.59
Posts /wp-admin/edit.php2,118 ▲292.02 ▲0.0139.44 ▲2.5334.34 ▲2.21
Add New Post /wp-admin/post-new.php1,561 ▲4718.29 ▲0.71617.77 ▼32.1860.93 ▲13.95
Media Library /wp-admin/upload.php1,417 ▲294.20 ▼0.0495.85 ▼0.4040.72 ▼2.32
EasyCPMods /wp-admin/admin.php?page=ecpm-menu8442.0222.5928.78
EasyCPMods Toolbox /wp-admin/admin.php?page=ecpm_etb_settings_page8472.0221.7827.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • ecpm_etb_settings
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easycpmods-toolbox/ecpm-toolbox.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Plugin's settings and update status), #2 (EasyCPMods menu group), #3 (Update icon appears when updates are available)
Please take inspiration from this readme.txt

easycpmods-toolbox/ecpm-toolbox.php 77% from 13 tests

The entry point to "EasyCPMods Toolbox" version 2.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easycpmods-toolbox.php" instead of "ecpm-toolbox.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin664 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29534536
PO File1242967
CSS12061

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.39
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 compressed PNG files occupy 0.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/remove-detached-images.png3.70KB3.91KB0.00%
images/easy-video-embed.png3.27KB3.35KB0.00%
images/better-featured-slider.png5.55KB5.83KB0.00%
images/easycpmods-toolbox.png3.24KB3.44KB0.00%
images/easy-qr-codes.png9.77KB5.77KB▼ 40.97%