90% wcboost-wishlist

Code Review | WCBoost - Wishlist

WordPress plugin WCBoost - Wishlist scored90%from 54 tests.

About plugin

  • Plugin page: wcboost-wishlist
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 20
  • Update frequency: every 20.9 days
  • Top authors: wcboost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /57,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.98ms] Passed 4 tests

An overview of server-side resources used by WCBoost - Wishlist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.99 ▼1.07
Dashboard /wp-admin3.35 ▲0.0148.24 ▼12.99
Posts /wp-admin/edit.php3.47 ▲0.1148.74 ▼4.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.68 ▼9.86
Media Library /wp-admin/upload.php3.28 ▲0.0534.08 ▲0.39

Server storage [IO: ▲0.24MB] [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: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WCBoost - Wishlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.20 ▼0.151.73 ▲0.1044.72 ▲6.40
Dashboard /wp-admin2,195 ▲245.62 ▼0.0794.98 ▼1.6542.06 ▼5.13
Posts /wp-admin/edit.php2,100 ▼01.95 ▲0.0038.86 ▼8.3335.50 ▼1.23
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▲0.10675.67 ▲11.0750.91 ▼18.20
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.0398.09 ▲1.8940.90 ▲0.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, products, woocommerce wishlist, wishlist, e-commerce

wcboost-wishlist/wcboost-wishlist.php 92% from 13 tests

This is the main PHP file of "WCBoost - Wishlist" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 266 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,521 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP319291,4343,735
JavaScript614757566
CSS1408191
XML10029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity25.88
▷ Minimum class complexity3.00
▷ Maximum class complexity78.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods208
▷ Static methods4722.60%
▷ Public methods18990.87%
▷ Protected methods136.25%
▷ Private methods62.88%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ 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
No PNG files were detected