Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/heroic-inspiration/heroic-inspiration.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; HeroicInspWidget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.93ms] Passed 4 tests
A check of server-side resources used by Heroic Inspiration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 8.76 ▼38.15 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.86 ▼48.19 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 4.71 ▼50.11 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.70 ▼87.28 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.07 ▼27.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_heroicinspwidget |
widget_recent-comments |
heroicinsp_widget_plugin_db_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Heroic Inspiration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.54 ▼1.21 | 2.27 ▲0.27 | 46.20 ▼2.67 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼0.02 | 101.15 ▼27.96 | 38.85 ▼11.43 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.00 | 37.03 ▲0.90 | 34.47 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.39 ▲0.14 | 650.96 ▼21.80 | 55.59 ▼0.11 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▼0.01 | 109.99 ▲3.41 | 47.93 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/heroic-inspiration/heroic-inspiration.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; HeroicInspWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-comments
- widget_heroicinspwidget
- theysaidso_admin_options
- can_compress_scripts
- heroicinsp_widget_plugin_db_version
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/heroic-inspiration/trunk/heroic-inspiration.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/heroic-inspiration/heroic-inspiration.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/heroic-inspiration/heroic-inspiration.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/heroic-inspiration/trunk/heroic-inspiration.php on line 15
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (heroic-inspiration-screenshot.png) image not found
heroic-inspiration/heroic-inspiration.php 92% from 13 tests
"Heroic Inspiration" version 1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")
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 detected83 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 10 | 83 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/heroic-inspiration-screenshot.png | 6.75KB | 4.18KB | ▼ 38.02% |
trunk/assets/heroic-inspiration-screenshot.png | 6.75KB | 4.18KB | ▼ 38.02% |