84% nc-wishlist-for-woocommerce

Code Review | NC Wishlist for Woocommerce

WordPress plugin NC Wishlist for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: nc-wishlist-for-w...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: May 10, 2016
  • Number of updates: 19
  • Update frequency: every 9.8 days
  • Top authors: Crispweb (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /3,396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by NC Wishlist for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.66 ▲3.31
Dashboard /wp-admin3.31 ▲0.0043.84 ▼3.64
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▲1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.90 ▼8.99
Media Library /wp-admin/upload.php3.23 ▲0.0037.46 ▲4.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for NC Wishlist for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.461.71 ▲0.0142.88 ▲1.73
Dashboard /wp-admin2,206 ▲245.79 ▼0.02101.17 ▼7.7039.82 ▼1.75
Posts /wp-admin/edit.php2,089 ▼02.07 ▲0.0539.39 ▲0.8136.23 ▲2.79
Add New Post /wp-admin/post-new.php1,514 ▼017.60 ▲0.13657.57 ▼37.2252.06 ▼2.31
Media Library /wp-admin/upload.php1,385 ▲34.24 ▲0.02108.37 ▲9.9647.52 ▲3.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/public/includes/nc-wishlist-for-woocommerce-ajax.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/inc/nc_wishlist_ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/inc/nc_wishlist_contents.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/public/includes/nc-wishlist-for-woocommerce-wishlist-items.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/admin/includes/nc-wishlist-for-woocommerce-settings-form.php:17
    • > PHP Notice
      Undefined index: nc_wihslist_items in wp-content/plugins/nc-wishlist-for-woocommerce/inc/nc_wishlist_contents.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_print_notices() in wp-content/plugins/nc-wishlist-for-woocommerce/inc/wishlist-items.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/inc/nc_wishlist_settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nc-wishlist-for-woocommerce/public/includes/nc-wishlist-for-woocommerce-contents.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce wishlist, wishlist, wishlist woocommerce

nc-wishlist-for-woocommerce/nc-wishlist-for-woocommerce.php Passed 13 tests

The primary PHP file in "NC Wishlist for Woocommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
91 characters long description:
NC Wishlist for woocommerce allow you to add wishlist functionality to your ecommerce store

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
Everything looks great! No dangerous files found in this plugin1,053 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP184146661,043
CSS20410

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.14
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin