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.01MB] [CPU: ▼7.50ms] Passed 4 tests
This is a short check of server-side resources used by Coded Hero Image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 27.98 ▼12.15 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.57 ▼2.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.38 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.19 ▼13.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.34 ▲3.06 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Coded Hero Image: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.88 ▼0.69 | 8.92 ▲7.24 | 41.63 ▼4.25 |
Dashboard /wp-admin | 2,216 ▲36 | 5.71 ▲0.03 | 92.03 ▼2.64 | 96.06 ▲55.34 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.27 ▲0.28 | 33.61 ▼6.43 | 34.47 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.71 ▲0.53 | 690.99 ▼3.04 | 38.62 ▼19.55 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.35 ▲0.17 | 102.81 ▲0.38 | 79.59 ▲29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/coded-hero-image-lite/stylesheets/dynamic_style.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coded-hero-image-lite/coded_hero_image.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: banner image, hero, banner, hero image
coded-hero-image-lite/coded_hero_image.php 85% from 13 tests
The main PHP script in "Coded Hero Image" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("coded-hero-image-lite.php" instead of "coded_hero_image.php")
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 detected448 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 87 | 25 | 381 |
CSS | 2 | 17 | 7 | 49 |
JavaScript | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/coded_icon.png | 0.91KB | 0.98KB | 0.00% |
img/down_arrow.png | 0.61KB | 0.35KB | ▼ 42.56% |