Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.42ms] Passed 4 tests
Analyzing server-side resources used by resmio button & widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.31 ▲3.30 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.42 ▼5.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.46 ▲3.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.88 ▼15.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.48 ▲4.57 |
resmio button and widget /wp-admin/options-general.php?page=resmio_btn_wdgt_page | 3.31 | 35.50 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by resmio button & widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 13.50 ▼0.80 | 1.85 ▼0.18 | 46.81 ▲5.94 |
Dashboard /wp-admin | 2,236 ▲48 | 5.30 ▲0.43 | 104.04 ▼12.69 | 38.93 ▼7.86 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.40 ▲0.39 | 39.26 ▼0.46 | 35.70 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.24 ▲5.75 | 675.50 ▼14.16 | 38.25 ▼16.13 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.62 ▲0.21 | 105.83 ▼3.53 | 44.49 ▼1.19 |
resmio button and widget /wp-admin/options-general.php?page=resmio_btn_wdgt_page | 1,489 | 3.00 | 60.39 | 31.04 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/resmio-button-and-widget/templates/shortcodes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resmio-button-and-widget/resmio-btn-wdgt.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resmio-button-and-widget/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== resmio-button-and-widget ===
) - Requires at least: Invalid plugin version format
resmio-button-and-widget/resmio-btn-wdgt.php 85% from 13 tests
"resmio button & widget" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("resmio-button-and-widget.php" instead of "resmio-btn-wdgt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin607 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 88 | 370 |
PO File | 1 | 31 | 31 | 106 |
CSS | 1 | 2 | 2 | 87 |
JavaScript | 4 | 1 | 12 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/resmio-logo.png | 10.89KB | 4.47KB | ▼ 58.96% |