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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/oh-hey-world/widget-badge.php+101
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼186.34ms] Passed 4 tests
This is a short check of server-side resources used by Oh Hey World
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 5.69 ▼18.05 |
Dashboard /wp-admin | 1.83 ▼1.23 | 4.91 ▼39.86 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 6.41 ▼36.55 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.61 | 5.00 ▼642.62 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.07 ▼26.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ohw_profile |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Oh Hey World
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.87 ▲0.21 | 10.07 ▼0.97 | 46.28 ▼3.00 |
Dashboard /wp-admin | 2,969 ▲38 | 6.06 ▲0.00 | 137.98 ▼0.88 | 112.87 ▼5.49 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▼0.12 | 64.91 ▼5.57 | 89.53 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,674 ▲176 | 18.88 ▲0.06 | 381.77 ▲0.84 | 116.68 ▲3.88 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▼0.05 | 154.78 ▲18.83 | 124.76 ▲4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/oh-hey-world/widget-badge.php+101
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_ohw_profile
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/oh-hey-world/shortcodes.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/oh-hey-world/shortcodes.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oh-hey-world/widget-badge.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== oh-hey-world ===
)
oh-hey-world/bootstrap.php 92% from 13 tests
The entry point to "Oh Hey World" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("oh-hey-world.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin240 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 17 | 10 | 163 |
CSS | 1 | 5 | 2 | 77 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 8.90KB | 5.62KB | ▼ 36.86% |
img/logo-horizon.png | 11.35KB | 7.37KB | ▼ 35.08% |