89% modifier-for-colors-label-variations-for-woocomerce

Code Review | Modifier For Color Label Variations For Woocomerce

WordPress plugin Modifier For Color Label Variations For Woocomerce scored89%from 54 tests.

About plugin

  • Plugin page: modifier-for-colo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: Mar 30, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: woop666 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,495 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.00MB] [CPU: ▼8.24ms] Passed 4 tests

This is a short check of server-side resources used by Modifier For Color Label Variations For Woocomerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.63 ▲0.29
Dashboard /wp-admin3.31 ▼0.0358.41 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0148.09 ▼2.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.75 ▼25.12
Media Library /wp-admin/upload.php3.24 ▲0.0138.27 ▲3.53

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
mclv_recently_activated
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Modifier For Color Label Variations For Woocomerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▲0.091.95 ▲0.0248.52 ▲0.69
Dashboard /wp-admin2,206 ▲185.87 ▲0.99101.24 ▼6.7645.95 ▼1.60
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0239.18 ▼2.1232.98 ▼8.80
Add New Post /wp-admin/post-new.php1,542 ▲1423.08 ▲4.99686.79 ▲72.3074.41 ▲22.20
Media Library /wp-admin/upload.php1,385 ▼04.17 ▼0.03100.98 ▼2.8146.56 ▲0.97

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 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
8 plugin tags: woocommerce variations, woocommerce colors, modifier for display color label variations, woocommerce, mclv woocommerce...

modifier-for-colors-label-variations-for-woocomerce/init.php 85% from 13 tests

The main file in "Modifier For Color Label Variations For Woocomerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("modifier-for-colors-label-variations-for-woocomerce.php" instead of "init.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected756 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7168219480
JavaScript35410226
CSS44050

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2086.96%
▷ Protected methods313.04%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin