89% woo-bulkbuy

Code Review | Woo Bulkbuy

WordPress plugin Woo Bulkbuy scored 89% from 54 tests.

About plugin

  • Plugin page: woo-bulkbuy
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.3
  • WordPress version: 6.3.1
  • First release: May 8, 2018
  • Latest release: Feb 10, 2020
  • Number of updates: 10
  • Update frequency: every 64.3 days
  • Top authors: bplv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 713 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Woo Bulkbuy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.21 ▼2.93
Dashboard /wp-admin3.33 ▲0.0343.95 ▼2.61
Posts /wp-admin/edit.php3.38 ▲0.0351.23 ▲0.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.19 ▼1.07
Media Library /wp-admin/upload.php3.25 ▲0.0334.11 ▲1.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Woo Bulkbuy: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.63 ▼1.129.14 ▲7.4345.45 ▼2.46
Dashboard /wp-admin2,206 ▲184.85 ▼0.06106.52 ▼6.5441.97 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0040.15 ▼4.2434.96 ▼3.54
Add New Post /wp-admin/post-new.php1,537 ▲823.38 ▲0.23613.91 ▼25.1546.52 ▲0.44
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.0699.77 ▼3.1242.06 ▼1.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === woo-bulkbuy === )
The official readme.txt is a good inspiration

woo-bulkbuy/woo-bulkbuy.php 85% from 13 tests

The primary PHP file in "Woo Bulkbuy" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin131 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP760185105
JavaScript17117
CSS1509

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1055.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin