Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.73ms] Passed 4 tests
A check of server-side resources used by BH Pricing Table
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.95 ▼6.49 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.25 ▼5.87 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.59 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.61 ▼7.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.65 ▲0.74 |
All Items /wp-admin/edit.php?post_type=bh_pricing | 3.33 | 34.78 |
Add New /wp-admin/post-new.php?post_type=bh_pricing | 3.32 | 41.75 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BH Pricing Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.12 ▼1.17 | 1.67 ▼0.30 | 41.77 ▼2.53 |
Dashboard /wp-admin | 2,243 ▲61 | 5.89 ▲0.98 | 103.06 ▼13.48 | 41.87 ▼4.32 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▲0.01 | 37.38 ▼1.79 | 39.41 ▲7.39 |
Add New Post /wp-admin/post-new.php | 1,448 ▼85 | 22.47 ▼0.67 | 555.85 ▼108.05 | 44.02 ▼12.46 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.19 ▼0.05 | 93.65 ▼3.30 | 42.86 ▼2.11 |
All Items /wp-admin/edit.php?post_type=bh_pricing | 1,096 | 1.98 | 32.80 | 33.86 |
Add New /wp-admin/post-new.php?post_type=bh_pricing | 1,430 | 2.50 | 47.60 | 57.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-pricing-table/bh_pricing_opt.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-pricing-table/plugin_main.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-pricing-table/custom_posts.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
- Tags: You are using too many tags: 14 tag instead of maximum 10
bh-pricing-table/plugin_main.php 85% from 13 tests
"BH Pricing Table" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bh-pricing-table.php" instead of "plugin_main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,274 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 12 | 21 | 1,035 |
PHP | 3 | 62 | 37 | 239 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 64.43KB | 20.56KB | ▼ 68.09% |
screenshot-1.png | 55.70KB | 22.63KB | ▼ 59.38% |
screenshot-3.png | 62.96KB | 25.20KB | ▼ 59.98% |
screenshot-2.png | 55.66KB | 20.70KB | ▼ 62.81% |