90% kwl-woocommerce-wishlist

Code Review | KWL WooCommerce Wishlist

WordPress plugin KWL WooCommerce Wishlist scored90%from 54 tests.

About plugin

  • Plugin page: kwl-woocommerce-w...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 29, 2018
  • Latest release: Nov 29, 2018
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: krstic2003 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.02ms] Passed 4 tests

Analyzing server-side resources used by KWL WooCommerce Wishlist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.86 ▼3.38
Dashboard /wp-admin3.35 ▲0.0044.68 ▼15.06
Posts /wp-admin/edit.php3.40 ▲0.0445.68 ▲2.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.87 ▼23.85
Media Library /wp-admin/upload.php3.27 ▲0.0434.45 ▲2.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

KWL WooCommerce Wishlist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲18714.20 ▼0.3914.33 ▲12.1137.01 ▼7.16
Dashboard /wp-admin2,224 ▲334.88 ▼0.98107.23 ▲4.2638.64 ▼8.98
Posts /wp-admin/edit.php2,110 ▲212.02 ▼0.0241.02 ▼1.1135.38 ▲0.30
Add New Post /wp-admin/post-new.php1,529 ▲117.64 ▼0.64655.57 ▲46.0451.48 ▲0.74
Media Library /wp-admin/upload.php1,403 ▲154.30 ▲0.0294.60 ▲0.2541.11 ▼0.02

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

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

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: wishlist, woocommerce

kwl-woocommerce-wishlist/kwlist.php 92% from 13 tests

The entry point to "KWL WooCommerce Wishlist" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kwl-woocommerce-wishlist.php" instead of "kwlist.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
Success! There were no dangerous files found in this plugin1,505 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS347481,250
PHP27626202
JavaScript111253

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
css/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
css/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%