77% advanced-product-wishlist-for-woo

Code Review | Advanced Product Wishlist for Woocommerce

WordPress plugin Advanced Product Wishlist for Woocommerce scored 77% from 54 tests.

About plugin

  • Plugin page: advanced-product-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.6.1
  • WordPress version: 5.9.2
  • First release: Aug 26, 2019
  • Latest release: Feb 3, 2022
  • Number of updates: 20
  • Update frequency: every 45.9 days
  • Top authors: athemeart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 12,218 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.62MB] [CPU: ▼290.59ms] Passed 4 tests

A check of server-side resources used by Advanced Product Wishlist for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8164.89 ▲15.83
Dashboard /wp-admin4.29 ▲0.8839.46 ▲7.31
Posts /wp-admin/edit.php4.39 ▲0.7539.27 ▼0.05
Add New Post /wp-admin/post-new.php7.05 ▲0.0591.05 ▼1,182.62
Media Library /wp-admin/upload.php4.26 ▲0.9736.84 ▲13.01
Advanced Product Wishlist /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce4.2841.05

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Product Wishlist for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,381 ▲62718.15 ▲2.4113.77 ▲7.542.34 ▼0.17
Dashboard /wp-admin3,328 ▲4678.45 ▲2.24142.39 ▲10.61155.95 ▼5.50
Posts /wp-admin/edit.php2,974 ▲2835.11 ▲1.8879.59 ▲16.00141.84 ▲2.31
Add New Post /wp-admin/post-new.php1,707 ▲4616.10 ▼0.23378.47 ▼52.63163.69 ▲5.20
Media Library /wp-admin/upload.php1,759 ▲615.97 ▲0.47110.05 ▼23.47187.03 ▲4.09
Advanced Product Wishlist /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce5,7125.41164.12199.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • apww_license
    • apsw_license_notices_web
    • apw_social_share
    • apw_wishtlist_achive
    • apww_color_scheme
    • widget_apww_wishlist_counter_widget
    • apw_layout
    • widget_apww_display_wishlist_widget
    • apw_general_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advanced-product-wishlist-for-woo/includes/class-advanced-product-wishlist-for-woocomerce-loader.php:74
    • > PHP Fatal error
      Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-color-field.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-input-field.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-fa-iconpicker-field.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-textarea-field.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/examples/procedural-example.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-wishlist-for-woo/includes/class-advanced-product-wishlist-for-notices.php:78
    • > PHP Fatal error
      Uncaught Error: Class 'Predic_Widget_Form_Field' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/fields/class-predic-widget-select-field.php:6
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-product-wishlist-for-woo/includes/class-advanced-product-wishlist-for-woocomerce-loader.php on line 74
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-product-wishlist-for-woo/lib/predic-widget/class/class-predic-widget-factory.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=advanced-product-wishlist-for-woocomerce
    • > Network (severe)
    wp-content/plugins/advanced-product-wishlist-for-woo/admin/css/upgrade.png - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 83% 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Plugins Options 0), #2 (Plugins Options 1), #3 (Plugins Options 2), #4 (Plugins Options 3), #5 (Plugins Options 4)
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

advanced-product-wishlist-for-woo/advanced-product-wishlist-for-woocomerce.php 77% from 13 tests

The primary PHP file in "Advanced Product Wishlist for Woocommerce" version 1.0.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-product-wishlist-for-woo.php" instead of "advanced-product-wishlist-for-woocomerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,592 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity20.46
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
▷ Static methods63.80%
▷ Public methods14491.14%
▷ Protected methods10.63%
▷ Private methods138.23%
▷ Named functions1392.86%
▷ Anonymous functions17.14%
▷ Global constants11100.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
6 PNG files occupy 0.22MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/owl-carousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
screenshot-2.png55.66KB29.54KB▼ 46.92%
screenshot-4.png27.14KB15.82KB▼ 41.68%
screenshot-0.png45.76KB27.34KB▼ 40.26%
screenshot-5.png72.09KB45.21KB▼ 37.29%