78% aco-wishlist-for-woocommerce

Code Review | Aco Wishlist for WooCommerce

WordPress plugin Aco Wishlist for WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: aco-wishlist-for-...
  • Plugin version: 1.0.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 10, 2020
  • Latest release: Feb 25, 2022
  • Number of updates: 24
  • Update frequency: every 19.7 days
  • Top authors: acowebscd (83.33%)acowebs (20.83%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,265 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼296.44ms] Passed 4 tests

Analyzing server-side resources used by Aco Wishlist for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.49 ▲4.31
Dashboard /wp-admin3.43 ▲0.0332.00 ▼2.65
Posts /wp-admin/edit.php3.66 ▲0.0237.37 ▼1.15
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.25 ▼1,183.70
Media Library /wp-admin/upload.php3.31 ▲0.0225.30 ▲1.76

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 5 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aco Wishlist for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4515.77 ▲0.235.97 ▼2.792.89 ▲0.91
Dashboard /wp-admin2,895 ▲346.17 ▼0.04113.94 ▼21.24157.44 ▼1.11
Posts /wp-admin/edit.php2,694 ▲243.23 ▼0.0362.25 ▼1.72136.49 ▼5.66
Add New Post /wp-admin/post-new.php1,711 ▼4720.82 ▼0.87432.92 ▼19.81156.63 ▼5.98
Media Library /wp-admin/upload.php1,695 ▼35.53 ▼0.01142.88 ▲0.84184.70 ▼3.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 5 options in the database
    • awwlm_wishlist_page
    • awwlm_page_settings
    • awwlm_button_settings
    • awwlm_version
    • awwlm_general_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/aco-wishlist-for-woocommerce/includes/views/admin-root.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aco-wishlist-for-woocommerce/start.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

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

The main PHP script in "Aco Wishlist for WooCommerce" version 1.0.16 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,348 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity78.60
▷ Minimum class complexity9.00
▷ Maximum class complexity206.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods65.88%
▷ Public methods10199.02%
▷ Protected methods00.00%
▷ Private methods10.98%
▷ Named functions457.14%
▷ Anonymous functions342.86%
▷ Global constants10100.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
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/logo.png5.70KB3.11KB▼ 45.34%
assets/images/prite1.png2.76KB1.13KB▼ 59.25%
assets/images/loading_ui.png2.07KB1.67KB▼ 19.42%