90% product-shortlist

Code Review | Product Shortlist

WordPress plugin Product Shortlist scored90%from 54 tests.

About plugin

  • Plugin page: product-shortlist
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.6
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jun 29, 2021
  • Number of updates: 23
  • Update frequency: every 81.0 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Product Shortlist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.71 ▼0.62
Dashboard /wp-admin3.31 ▲0.0053.14 ▲1.16
Posts /wp-admin/edit.php3.36 ▲0.0049.13 ▲0.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.84 ▼0.80
Media Library /wp-admin/upload.php3.23 ▲0.0036.85 ▲2.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Shortlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.001.80 ▲0.0244.07 ▼2.73
Dashboard /wp-admin2,189 ▲125.56 ▼0.0689.70 ▼2.8437.14 ▼8.45
Posts /wp-admin/edit.php2,097 ▼32.05 ▲0.0236.79 ▼0.5033.56 ▼1.63
Add New Post /wp-admin/post-new.php1,545 ▲1323.04 ▼0.05613.97 ▼56.5350.34 ▼0.65
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0598.00 ▼8.7943.86 ▼1.17

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected 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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: shortlist extension, woocommerce extension to shortlist products, woocommerce product shortlist extension, product shortlist extension, wordpress...

product-shortlist/product-shortlist.php Passed 13 tests

The main PHP file in "Product Shortlist" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
A WooCommerce extension to shortlist the desired products of WooCommerce .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16,727 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83,1492,20314,297
PHP51753281,771
CSS53512373
PO File2119120286

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity136.00
▷ Minimum class complexity136.00
▷ Maximum class complexity136.00
Average method complexity6.19
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/close.png5.63KB2.64KB▼ 53.09%
assets/images/placeholder.png2.75KB2.92KB0.00%