Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.34MB] [CPU: ▼12.44ms] Passed 4 tests
A check of server-side resources used by HB Line Button Tiny
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 5.22 ▼37.12 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.12 ▼5.95 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.22 ▲1.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.77 ▼8.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.33 ▲1.95 |
HB Line Button /wp-admin/tools.php?page=hb_line_button_tiny | 3.23 | 32.89 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for HB Line Button Tiny
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.26 ▼0.39 | 2.34 ▲0.62 | 43.96 ▲4.47 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.05 | 85.50 ▼10.98 | 39.26 ▼5.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 40.18 ▲1.94 | 35.46 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.98 ▼0.06 | 679.71 ▼42.33 | 51.77 ▼7.67 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.19 ▼0.05 | 96.87 ▼13.75 | 48.05 ▼0.28 |
HB Line Button /wp-admin/tools.php?page=hb_line_button_tiny | 888 | 2.02 | 23.84 | 27.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=hb_line_button_tiny
- > Notice in wp-content/plugins/hb-line-button-tiny/page/hb_line_button_tiny_setting.php+7
Undefined index: line
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=hb_line_button_tiny
- > Notice in wp-content/plugins/hb-line-button-tiny/page/hb_line_button_tiny_setting.php+29
Trying to access array offset on value of type null
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hb-line-button-tiny/page/hb_line_button_tiny_button.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: line
hb-line-button-tiny/hb-line-button-tiny.php Passed 13 tests
"HB Line Button Tiny" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
21 characters long description:
A HB Line Button Tiny
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
Good job! No executable or dangerous file extensions detected380 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 11 | 231 |
CSS | 1 | 24 | 1 | 126 |
JavaScript | 2 | 1 | 1 | 22 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 16.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 83.33% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/btn_base.png | 1.36KB | 0.91KB | ▼ 32.76% |