74% wishlist

Code Review | Wishlist

WordPress plugin Wishlist scored74%from 54 tests.

About plugin

  • Plugin page: wishlist
  • Plugin version: 1.0.39
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Jul 23, 2023
  • Number of updates: 114
  • Update frequency: every 18.5 days
  • Top authors: pickplugins (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

600+ active /23,174 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.08MB] [CPU: ▲5.84ms] Passed 4 tests

This is a short check of server-side resources used by Wishlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2451.99 ▲2.93
Dashboard /wp-admin4.42 ▲1.1164.52 ▲9.92
Posts /wp-admin/edit.php4.48 ▲1.1267.28 ▲18.78
Add New Post /wp-admin/post-new.php6.95 ▲1.05105.47 ▲2.98
Media Library /wp-admin/upload.php4.26 ▲1.0349.55 ▲7.51
All Wishlists /wp-admin/edit.php?post_type=wishlist4.4658.28
Settings /wp-admin/edit.php?post_type=wishlist&page=wishlist-settings4.3954.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: 2 new tables, 8 new options
New tables
wp_pickplugins_wl_data
wp_pickplugins_wl_urlid
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
wishlist_plugin_info
widget_recent-comments
wishlist_settings
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Wishlist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,039 ▲27814.88 ▲0.606.05 ▲4.1343.01 ▼5.91
Dashboard /wp-admin2,366 ▲1926.23 ▲0.56125.21 ▲25.1448.85 ▲6.75
Posts /wp-admin/edit.php2,294 ▲1943.40 ▲1.4355.42 ▲13.2935.82 ▼3.64
Add New Post /wp-admin/post-new.php1,553 ▲2723.40 ▲0.46632.08 ▼90.4934.47 ▼21.79
Media Library /wp-admin/upload.php1,434 ▲374.23 ▲0.0089.15 ▼33.8144.67 ▼14.46
All Wishlists /wp-admin/edit.php?post_type=wishlist1,8593.3655.8933.78
Settings /wp-admin/edit.php?post_type=wishlist&page=wishlist-settings5,3317.71183.9745.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_pickplugins_wl_urlid
    • wp_pickplugins_wl_data
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • theysaidso_admin_options
    • wishlist_settings
    • widget_recent-posts
    • db_upgraded
    • wishlist_plugin_info
    • widget_recent-comments
    • widget_theysaidso_widget

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 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
Looking good! No server-side errors or output on direct access of PHP files

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/edit.php?post_type=wishlist&page=wishlist-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,moxiejs,plupload,wp-codemirror,code-editor&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).Lazy is not a function" "TypeError: $(...).Lazy is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wishlist/assets/settings-tabs/settings-tabs.js?ver=6.3.1:311:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,moxiejs,plupload,wp-codemirror,code-editor&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,moxiejs,plupload,wp-codemirror,code-editor&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=wishlist&page=wishlist-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,moxiejs,plupload,wp-codemirror,code-editor&ver=6.3.1 1:28721 Uncaught TypeError: $(...).Lazy is not a function

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #5 in wishlist/assets to your readme.txt
The official readme.txt is a good inspiration

wishlist/wishlist.php Passed 13 tests

The main file in "Wishlist" v. 1.0.39 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Add wish-list feature to your WooCommerce product or any post types.

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
There were no executable files found in this plugin22,063 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
SVG401211,553
PHP232,9132014,975
CSS101,8491244,044
JavaScript5590133879
PO File1208265490
JSON130122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity91.50
▷ Minimum class complexity1.00
▷ Maximum class complexity641.00
Average method complexity12.49
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions86
▷ Named functions86100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin