Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.16ms] Passed 4 tests
An overview of server-side resources used by SvegliaT Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 39.65 ▼3.25 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.99 ▼3.31 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 43.78 ▼2.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.82 ▲0.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 31.36 ▼4.01 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SvegliaT Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 14.55 ▲0.31 | 1.78 ▲0.16 | 45.25 ▲0.52 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▲0.96 | 109.81 ▲6.99 | 83.31 ▲40.53 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.01 | 34.67 ▼2.59 | 32.83 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.43 ▲0.09 | 691.64 ▼21.91 | 53.50 ▲0.81 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.17 ▼0.01 | 100.06 ▼7.58 | 46.66 ▲4.43 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 1× 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/svegliat-buttons/svegliat-buttons.php:209
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (This is an example of the buttons inside your blogpost), #2 (This is an example of the button inside your blogpost)
svegliat-buttons/svegliat-buttons.php Passed 13 tests
This is the main PHP file of "SvegliaT Buttons" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Add a shortcode in your wordpress to visualize nice and colored buttons.
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
Good job! No executable or dangerous file extensions detected1,171 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 98 | 20 | 667 |
PHP | 1 | 117 | 41 | 405 |
JavaScript | 1 | 1 | 1 | 99 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 27 | |
▷ Named functions | 27 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.15KB | 18.96KB | ▼ 62.19% |
admin-images/button-editor.png | 61.65KB | 20.15KB | ▼ 67.32% |
admin-images/menu_icon.png | 0.72KB | 0.57KB | ▼ 20.98% |
admin-images/caffe.png | 22.37KB | 8.86KB | ▼ 60.41% |
screenshot-2.png | 5.29KB | 2.99KB | ▼ 43.49% |