89% spm-show-colors-for-elementor

Code Review | SPM Show Colors for Elementor

WordPress plugin SPM Show Colors for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: spm-show-colors-f...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2023
  • Latest release: Aug 22, 2023
  • Number of updates: 3
  • Update frequency: every 5.3 days
  • Top authors: simonpetermedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by SPM Show Colors for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.74 ▼0.81
Dashboard /wp-admin3.32 ▲0.0247.01 ▼0.80
Posts /wp-admin/edit.php3.37 ▲0.0144.48 ▼3.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.47 ▼6.32
Media Library /wp-admin/upload.php3.24 ▲0.0132.66 ▼2.60

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

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

Browser metrics Passed 4 tests

SPM Show Colors for Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.63 ▼1.015.55 ▲3.8442.78 ▲0.63
Dashboard /wp-admin2,207 ▲195.85 ▲0.9996.72 ▼11.7041.09 ▼3.89
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0134.37 ▼2.4629.69 ▼4.92
Add New Post /wp-admin/post-new.php1,518 ▲423.38 ▲5.71674.83 ▲7.1958.46 ▲4.54
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.02104.67 ▲7.4244.94 ▲1.16

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: You can look at the official readme.txt

spm-show-colors-for-elementor/spm-show-colors-for-elementor.php 85% from 13 tests

The main PHP script in "SPM Show Colors for Elementor" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 316 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1135100
PHP1171553
JavaScript18438

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin