Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.75ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Book Keeper
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.85 ▲1.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.62 ▲0.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.46 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.24 ▼10.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.41 ▲3.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] 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 |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Book Keeper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.71 ▲0.36 | 1.78 ▲0.14 | 48.77 ▲9.53 |
Dashboard /wp-admin | 2,195 ▲20 | 5.51 ▼0.21 | 83.88 ▼20.66 | 36.65 ▼4.77 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.00 | 37.19 ▲1.56 | 32.21 ▼6.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼154 | 23.14 ▲1.40 | 612.03 ▲5.13 | 81.02 ▲15.48 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.22 ▲0.02 | 96.55 ▼2.58 | 44.16 ▲1.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
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 a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woocommerce-book-keeper/mw-book-keeper.php 77% from 13 tests
Analyzing the main PHP file in "Woocommerce Book Keeper" version 1.08
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 ("woocommerce-book-keeper.php" instead of "mw-book-keeper.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.8" instead of "3.6.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin731 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 124 | 60 | 611 |
PO File | 1 | 45 | 45 | 120 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/expert/wbk-expert-3.png | 12.79KB | 12.55KB | ▼ 1.86% |
img/expert/wbk-expert-2.png | 12.70KB | 12.60KB | ▼ 0.78% |
img/expert/wbk-expert-1.png | 15.22KB | 14.71KB | ▼ 3.34% |
img/stars.png | 0.68KB | 0.49KB | ▼ 28.24% |