Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.40ms] Passed 4 tests
This is a short check of server-side resources used by Bux Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.15 ▼0.59 |
Dashboard /wp-admin | 3.38 ▲0.08 | 41.53 ▼6.99 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.12 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 79.21 ▼13.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 32.41 ▼4.32 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Bux Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▲0.02 | 1.65 ▲0.09 | 37.09 ▼2.49 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.04 | 94.62 ▲8.45 | 43.35 ▲1.22 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 40.85 ▲5.78 | 40.57 ▲6.69 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.23 ▼4.74 | 653.02 ▼14.70 | 77.66 ▲20.58 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.18 ▼0.06 | 93.44 ▼7.94 | 40.62 ▼7.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bux-woocommerce/bux-plugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Choose bux as a mode of payment upon checkout), #2 (Present reference code to 7-eleven, Cebuana, LBC, etc)
bux-woocommerce/bux-plugin.php 92% from 13 tests
The main file in "Bux Woocommerce" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bux-woocommerce.php" instead of "bux-plugin.php")
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
There were no executable files found in this plugin401 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 135 | 69 | 397 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.97MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 279.10KB | 78.17KB | ▼ 71.99% |
images/screenshot-1.png | 209.75KB | 55.62KB | ▼ 73.48% |
images/screenshot-2.png | 279.10KB | 78.17KB | ▼ 71.99% |
bux-woocommerce.png | 1.90KB | 1.48KB | ▼ 22.14% |
powered_by_bux.png | 2.43KB | 1.92KB | ▼ 20.65% |