89% wc-load-more-product

Code Review | Woocommerce products list and grid view

WordPress plugin Woocommerce products list and grid view scored 89% from 54 tests.

About plugin

  • Plugin page: wc-load-more-product
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Jan 20, 2018
  • Number of updates: 13
  • Update frequency: every 40.4 days
  • Top authors: ikhodal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,153 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.09MB] [CPU: ▼6.67ms] Passed 4 tests

Server-side resources used by Woocommerce products list and grid view
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.15 ▼6.53
Dashboard /wp-admin3.39 ▲0.0944.59 ▼2.23
Posts /wp-admin/edit.php3.50 ▲0.1546.74 ▼0.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.23 ▼17.30
Media Library /wp-admin/upload.php3.31 ▲0.0936.42 ▲2.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_wcloadmore
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce products list and grid view
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲12913.70 ▼0.678.54 ▲6.2142.83 ▼1.07
Dashboard /wp-admin2,213 ▲315.86 ▲0.9696.01 ▼42.2040.64 ▼19.75
Posts /wp-admin/edit.php2,099 ▲72.03 ▼0.0040.11 ▼1.8334.21 ▼2.83
Add New Post /wp-admin/post-new.php1,521 ▼2123.39 ▲5.07668.90 ▲66.6755.85 ▲10.57
Media Library /wp-admin/upload.php1,398 ▲134.27 ▲0.0596.91 ▼7.9242.70 ▼1.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_wcloadmore
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wc-load-more-product/plugin.php 92% from 13 tests

The primary PHP file in "Woocommerce products list and grid view" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-load-more-product.php" instead of "plugin.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 plugin1,453 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP121823321,046
JavaScript2300174
CSS21110125
PO File1450108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.67
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
13 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ac_close.png0.49KB0.53KB0.00%
assets/images/right-icon.png0.36KB0.44KB0.00%
assets/images/searchicon.png0.80KB0.82KB0.00%
assets/images/ac_bottom.png0.28KB0.27KB▼ 5.54%
assets/images/ac2_open.png0.29KB0.22KB▼ 24.75%