89% mad-cow-customizer-for-woocommerce

Code Review | Mad Cow Customizer for WooCommerce

WordPress plugin Mad Cow Customizer for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: mad-cow-customize...
  • Plugin version: 1.9.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 2, 2023
  • Latest release: Apr 5, 2023
  • Number of updates: 15
  • Update frequency: every 6.4 days
  • Top authors: jrobie23 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.80ms] Passed 4 tests

Server-side resources used by Mad Cow Customizer for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.53 ▼1.02
Dashboard /wp-admin3.37 ▲0.0748.52 ▼5.81
Posts /wp-admin/edit.php3.48 ▲0.1351.38 ▼1.33
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.06 ▼3.03
Media Library /wp-admin/upload.php3.29 ▲0.0642.14 ▲5.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Mad Cow Customizer for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.72 ▼0.661.83 ▼0.2243.71 ▼0.57
Dashboard /wp-admin2,206 ▲184.91 ▼0.96111.51 ▲4.0744.37 ▲0.43
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0339.40 ▼4.0834.11 ▼4.06
Add New Post /wp-admin/post-new.php1,533 ▲1423.30 ▲0.08650.82 ▲50.0761.64 ▲14.39
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.04100.90 ▼0.6942.97 ▼2.95

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

mad-cow-customizer-for-woocommerce/mad-cow-customizer-for-woocommerce.php 85% from 13 tests

This is the main PHP file of "Mad Cow Customizer for WooCommerce" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "6.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")

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
Success! There were no dangerous files found in this plugin2,529 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP1961692,356
Markdown1440119
CSS123754

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.67
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions3193.94%
▷ Anonymous functions26.06%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.24MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mcw-customizer-email.png152.01KB41.88KB▼ 72.45%
images/mcw-customizer-cart.png272.62KB77.01KB▼ 71.75%
images/mcw-customizer-checkout.png329.70KB99.62KB▼ 69.78%
images/mcw-customizer-shop.png183.32KB48.99KB▼ 73.28%
images/mcw-customizer-product.png329.34KB91.43KB▼ 72.24%