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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.92ms] Passed 4 tests
Analyzing server-side resources used by Button Block - Get fully customizable & multi-functional buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.14 | 40.55 ▼6.11 |
Dashboard /wp-admin | 3.49 ▲0.11 | 57.08 ▼11.17 |
Posts /wp-admin/edit.php | 3.61 ▲0.21 | 55.04 ▲5.76 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.18 | 96.46 ▲3.83 |
Media Library /wp-admin/upload.php | 3.42 ▲0.15 | 46.26 ▲9.06 |
Button Block /wp-admin/admin.php?page=button-block | 3.37 | 42.38 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
btn_free-redirect |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Button Block - Get fully customizable & multi-functional buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,528 ▼1,222 | 11.94 ▼2.27 | 1.53 ▼0.31 | 32.15 ▼11.21 |
Dashboard /wp-admin | 2,192 ▲21 | 5.51 ▼0.08 | 90.38 ▼13.00 | 42.17 ▼0.71 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▲0.01 | 41.80 ▲4.44 | 35.50 ▼2.25 |
Add New Post /wp-admin/post-new.php | 6,397 ▲4,861 | 30.11 ▲6.99 | 953.32 ▲265.76 | 42.23 ▼29.11 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.26 ▲0.07 | 97.97 ▼17.25 | 42.72 ▼7.12 |
Button Block /wp-admin/admin.php?page=button-block | 798 | 2.28 | 53.08 | 28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- btn_free-redirect
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/button-block/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Warning
Use of undefined constant BTN_VERSION - assumed 'BTN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/button-block/dist/editor.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button-block/inc/block.php:4
- > PHP Fatal error
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 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: No descriptions were found for these screenshots #10, #3, #4, #5, #6, #7, #8, #9 in button-block/assets to your readme.txt
button-block/index.php 92% from 13 tests
The main file in "Button Block - Get fully customizable & multi-functional buttons" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("button-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin969 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 100 | 37 | 446 |
PO File | 2 | 135 | 270 | 301 |
JSON | 4 | 0 | 0 | 209 |
JavaScript | 4 | 0 | 27 | 8 |
CSS | 5 | 0 | 7 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.71% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |