78% aco-wishlist-for-woocommerce

Code Review | Wishlist and Save for later for Woocommerce

WordPress plugin Wishlist and Save for later for Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: aco-wishlist-for-...
  • Plugin version: 1.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 10, 2020
  • Latest release: Nov 16, 2023
  • Number of updates: 44
  • Update frequency: every 25.0 days
  • Top authors: acowebscd (90.91%)acowebs (11.36%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,913 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
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼8.48ms] Passed 4 tests

Server-side resources used by Wishlist and Save for later for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2638.94 ▼0.32
Dashboard /wp-admin3.60 ▲0.2649.79 ▼10.57
Posts /wp-admin/edit.php3.72 ▲0.3651.28 ▲6.28
Add New Post /wp-admin/post-new.php6.20 ▲0.3289.73 ▼21.14
Media Library /wp-admin/upload.php3.53 ▲0.3032.62 ▼1.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Wishlist and Save for later for Woocommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.20 ▼0.181.73 ▼0.0140.54 ▼2.70
Dashboard /wp-admin2,195 ▲155.71 ▲0.0595.63 ▼2.7043.60 ▼1.82
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.2041.00 ▼1.4237.66 ▲5.62
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.43622.43 ▼49.3553.72 ▼1.00
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0199.19 ▼0.8242.41 ▼1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 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 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/aco-wishlist-for-woocommerce/includes/views/admin-root.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aco-wishlist-for-woocommerce/start.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

aco-wishlist-for-woocommerce/start.php 92% from 13 tests

The primary PHP file in "Wishlist and Save for later for Woocommerce" version 1.1.12 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("aco-wishlist-for-woocommerce.php" instead of "start.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,361 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP188014782,722
Sass18181,089
JavaScript64219413
SVG800115
XML10015
CSS2406
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity81.83
▷ Minimum class complexity15.00
▷ Maximum class complexity213.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods121
▷ Static methods75.79%
▷ Public methods12099.17%
▷ Protected methods00.00%
▷ Private methods10.83%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants10
▷ Global constants10100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/prite1.png2.76KB1.13KB▼ 59.25%
assets/images/logo.png5.70KB3.11KB▼ 45.34%
assets/images/icon.png0.76KB0.83KB0.00%
assets/images/loading_ui.png2.07KB1.67KB▼ 19.42%