74% addonify-wishlist

Code Review | Addonify - WooCommerce Wishlist

WordPress plugin Addonify - WooCommerce Wishlist scored74%from 54 tests.

About plugin

  • Plugin page: addonify-wishlist
  • Plugin version: 2.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 21
  • Update frequency: every 23.1 days
  • Top authors: addonify (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /16,750 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Addonify - WooCommerce Wishlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1541.33 ▲0.14
Dashboard /wp-admin3.45 ▲0.1446.56 ▼2.71
Posts /wp-admin/edit.php3.57 ▲0.2048.80 ▲1.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1480.24 ▼13.10
Media Library /wp-admin/upload.php3.38 ▲0.1436.23 ▲0.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 185 new files
Database: 1 new table, 7 new options
New tables
wp_addonify_wishlist_table
New WordPress options
theysaidso_admin_options
can_compress_scripts
addonify_wishlist_wishlist_page
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Addonify - WooCommerce Wishlist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4814.22 ▼0.101.64 ▼0.2844.20 ▼1.56
Dashboard /wp-admin2,218 ▲405.61 ▼0.1192.28 ▼22.4638.90 ▼5.28
Posts /wp-admin/edit.php2,121 ▲212.01 ▲0.0639.54 ▲3.3737.01 ▲2.07
Add New Post /wp-admin/post-new.php1,543 ▲1723.14 ▼0.14671.89 ▲19.0161.62 ▲10.09
Media Library /wp-admin/upload.php1,420 ▲204.18 ▼0.1198.29 ▼4.6341.71 ▼0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_addonify_wishlist_table
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • addonify_wishlist_wishlist_page
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonify-wishlist/includes/addonify-wishlist-template-functions.php:472
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addonify-wishlist/includes/setting-functions/settings-v2.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-wishlist/includes/setting-functions/fields_v2/wishlist-notice.php:127
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addonify-wishlist/public/templates/addonify-wishlist-modal-content.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-wishlist/includes/setting-functions/fields_v2/popup-modal.php:266
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addonify-wishlist/includes/class-addonify-wishlist-database-handler.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-wishlist/includes/setting-functions/fields_v2/wishlist-sidebar.php:325
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-wishlist/includes/setting-functions/fields_v2/wishlist-page.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addonify-wishlist/public/templates/addonify-wishlist-page-loop.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-wishlist/includes/setting-functions/fields_v2/general.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: wishlist, e-commerce, woocommerce, product wishlist, ecommerce...

addonify-wishlist/addonify-wishlist.php Passed 13 tests

"Addonify - WooCommerce Wishlist" version 2.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
Addonify WooCommerce Wishlist is a light-weight yet powerful tool that adds a wishlist functionality to your e-commerce shop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,825 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP661,6152,9997,084
JSON200510
Markdown2720149
CSS621854
JavaScript70028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity26.29
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods199
▷ Static methods3316.58%
▷ Public methods17688.44%
▷ Protected methods00.00%
▷ Private methods2311.56%
Functions102
▷ Named functions9088.24%
▷ Anonymous functions1211.76%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin