84% woocommerce-product-details-customiser

Code Review | WooCommerce Product Details Customiser

WordPress plugin WooCommerce Product Details Customiser scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: May 29, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 6
  • Update frequency: every 77.3 days
  • Top authors: jameskoster (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active /77,857 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by WooCommerce Product Details Customiser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.69 ▼12.50
Dashboard /wp-admin3.31 ▲0.0049.31 ▼2.36
Posts /wp-admin/edit.php3.36 ▲0.0048.05 ▼0.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.66 ▼12.48
Media Library /wp-admin/upload.php3.23 ▲0.0052.05 ▲16.46

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Product Details Customiser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▼0.202.18 ▲0.5943.77 ▲5.11
Dashboard /wp-admin2,195 ▲185.55 ▼0.0785.71 ▼4.6542.57 ▼2.39
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0639.18 ▲1.8736.02 ▲2.57
Add New Post /wp-admin/post-new.php1,546 ▲1523.16 ▼0.05649.59 ▲0.0253.27 ▼1.03
Media Library /wp-admin/upload.php1,397 ▼64.22 ▼0.02108.76 ▲10.2544.72 ▼0.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-product-details-customiser/details-customiser.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, products, ecommerce

woocommerce-product-details-customiser/details-customiser.php 85% from 13 tests

"WooCommerce Product Details Customiser" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-product-details-customiser.php" instead of "details-customiser.php")

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
There were no executable files found in this plugin235 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP13547130
PO File1204458
LESS10031
JavaScript22012
Markdown1103
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin