Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.97ms] Passed 4 tests
Server-side resources used by Toolbar Publish Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.72 ▼7.66 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.89 ▼10.66 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.65 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.18 ▼0.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.19 ▼0.85 |
Toolbar Publish Button /wp-admin/options-general.php?page=tpb-settings | 3.22 | 33.50 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpuxss_tpb_version |
wpuxss_tpb_settings |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Toolbar Publish Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.07 | 1.75 ▼0.57 | 38.69 ▼5.54 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.03 | 88.14 ▼3.20 | 39.65 ▼5.27 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.04 ▲0.08 | 43.43 ▲7.28 | 42.09 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 23.25 ▲5.00 | 672.56 ▲52.73 | 39.27 ▼35.23 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.23 ▲0.05 | 103.86 ▼4.39 | 44.58 ▼3.69 |
Toolbar Publish Button /wp-admin/options-general.php?page=tpb-settings | 1,207 | 2.50 | 47.89 | 36.88 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- wpuxss_tpb_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- wpuxss_tpb_settings
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
toolbar-publish-button/toolbar-publish-button.php 92% from 13 tests
The main file in "Toolbar Publish Button" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected534 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 201 | 183 | 281 |
JavaScript | 4 | 109 | 12 | 175 |
CSS | 1 | 6 | 1 | 56 |
SVG | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin