Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.54ms] Passed 4 tests
This is a short check of server-side resources used by Good Morning Planet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 37.79 ▼3.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.79 ▼6.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.57 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.82 ▲3.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.91 ▼6.36 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Good Morning Planet
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.65 ▼0.72 | 1.69 ▼0.15 | 39.83 ▼5.96 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.04 | 96.87 ▼16.88 | 41.89 ▼7.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 39.89 ▼0.81 | 34.78 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.27 ▲5.80 | 587.30 ▼109.54 | 54.07 ▼3.14 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 97.37 ▼4.67 | 45.43 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/good-morning-planet/gmp-travels-plugin.php:12
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== good-morning-planet ===
) - Screenshots: Add an image for screenshot #1 (Display your travel path on your blog post.)
good-morning-planet/gmp-travels-plugin.php 92% from 13 tests
The primary PHP file in "Good Morning Planet" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("good-morning-planet.php" instead of "gmp-travels-plugin.php")
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
Success! There were no dangerous files found in this plugin273 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 1 | 1 | 126 |
LESS | 1 | 8 | 0 | 76 |
JavaScript | 1 | 6 | 4 | 29 |
PHP | 1 | 8 | 12 | 27 |
JSON | 1 | 0 | 0 | 14 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.89MB with 0.58MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 360.26KB | 107.97KB | ▼ 70.03% |
assets/screenshot-2.png | 171.53KB | 50.45KB | ▼ 70.59% |
assets/screenshot-1.png | 224.54KB | 66.61KB | ▼ 70.33% |
assets/banner-772x250.png | 152.59KB | 76.49KB | ▼ 49.87% |