89% wc-save-for-later

Code Review | WPC Save For Later for WooCommerce

WordPress plugin WPC Save For Later for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-save-for-later
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Sep 22, 2023
  • Number of updates: 44
  • Update frequency: every 40.4 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /9,704 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.22ms] Passed 4 tests

Analyzing server-side resources used by WPC Save For Later for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.64 ▲1.02
Dashboard /wp-admin3.32 ▲0.0242.65 ▼1.74
Posts /wp-admin/edit.php3.44 ▲0.0840.51 ▼17.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.71 ▼14.74
Media Library /wp-admin/upload.php3.25 ▲0.0241.26 ▲3.95
About /wp-admin/admin.php?page=wpclever3.2136.77
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2126.35

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WPC Save For Later for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.61 ▼0.111.69 ▲0.0443.43 ▼0.49
Dashboard /wp-admin2,273 ▲1035.70 ▲0.1085.65 ▼13.9372.01 ▲33.19
Posts /wp-admin/edit.php2,176 ▲762.02 ▲0.0549.24 ▲10.2331.58 ▼4.93
Add New Post /wp-admin/post-new.php1,760 ▲35624.65 ▲6.76674.75 ▲0.1048.72 ▼16.31
Media Library /wp-admin/upload.php1,472 ▲724.23 ▲0.01100.19 ▼8.7673.67 ▲29.38
About /wp-admin/admin.php?page=wpclever1,3892.1529.4335.10
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7302.1233.3059.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

wc-save-for-later/wpc-save-for-later.php 85% from 13 tests

The main PHP script in "WPC Save For Later for WooCommerce" version 3.1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-save-for-later.php" instead of "wpc-save-for-later.php")
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,134 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP4170401,091
CSS3957497
JavaScript3785292
Sass1190103
PO File1262882
SVG70069

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity28.50
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin