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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.41ms] Passed 4 tests
Server-side resources used by Shortcode Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.39 ▼1.40 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.54 ▼15.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.77 ▼9.36 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.90 ▼18.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.00 ▲1.20 |
Shortcode Button /wp-admin/tools.php?page=shortcode-button-help | 3.22 | 32.04 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shortcode Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.74 ▲0.35 | 1.90 ▲0.01 | 48.32 ▲1.05 |
Dashboard /wp-admin | 2,227 ▲21 | 5.83 ▼0.05 | 118.63 ▲13.15 | 43.89 ▲0.74 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.05 ▲0.03 | 34.40 ▼5.83 | 33.13 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.22 ▲0.05 | 610.13 ▼64.39 | 77.91 ▲10.26 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.06 | 112.44 ▼0.54 | 54.99 ▲6.29 |
Shortcode Button /wp-admin/tools.php?page=shortcode-button-help | 831 | 2.02 | 25.72 | 31.14 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-button/help.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shortcode-button/shortcode-button.php:34
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: button, shortcode
shortcode-button/shortcode-button.php Passed 13 tests
The primary PHP file in "Shortcode Button" version 1.1.9 is used by WordPress to initiate all plugin functionality
113 characters long description:
Add Useful Buttons to your blog simply by shortcode. 在你的部落格中使用短代碼來加入實用的按鈕
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected299 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 31 | 0 | 144 |
PHP | 2 | 19 | 25 | 81 |
PO File | 2 | 20 | 22 | 74 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/but-link.png | 4.95KB | 1.75KB | ▼ 64.71% |
img/but-down.png | 7.08KB | 2.04KB | ▼ 71.20% |
img/but-document.png | 7.26KB | 2.09KB | ▼ 71.26% |
img/but-heart.png | 6.70KB | 1.81KB | ▼ 72.96% |