84% woocommerce-product-archive-customiser

Code Review | WooCommerce Product Archive Customiser

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

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.3
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Mar 10, 2017
  • Number of updates: 18
  • Update frequency: every 77.1 days
  • Top authors: jameskoster (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

9,000+ active /284,936 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.07MB] [CPU: ▼12.08ms] Passed 4 tests

A check of server-side resources used by WooCommerce Product Archive Customiser
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.52 ▼6.74
Dashboard /wp-admin3.38 ▲0.0446.24 ▼16.59
Posts /wp-admin/edit.php3.43 ▲0.0845.45 ▼1.74
Add New Post /wp-admin/post-new.php5.96 ▲0.0878.24 ▼23.25
Media Library /wp-admin/upload.php3.30 ▲0.0835.08 ▲2.03

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

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

Browser metrics Passed 4 tests

WooCommerce Product Archive Customiser: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.151.73 ▼0.1439.78 ▼2.79
Dashboard /wp-admin2,206 ▲184.87 ▼1.1396.89 ▼10.4239.95 ▼5.69
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0239.19 ▲2.1234.76 ▼1.78
Add New Post /wp-admin/post-new.php1,532 ▼123.21 ▲0.08681.91 ▲43.5755.09 ▲8.09
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0295.31 ▼3.6442.02 ▼1.59

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-product-archive-customiser/woocommerce-product-archive-customiser.php:22

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: products, ecommerce, woocommerce

woocommerce-product-archive-customiser/woocommerce-product-archive-customiser.php 92% from 13 tests

"WooCommerce Product Archive Customiser" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 276 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
No dangerous file extensions were detected648 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP194202428
LESS25088
PO File1347286
CSS20046

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.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 files were detected