Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.74ms] Passed 4 tests
Analyzing server-side resources used by Easter Eggs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.67 ▼0.01 |
Dashboard /wp-admin | 3.56 ▲0.21 | 52.29 ▼4.55 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.20 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 86.61 ▼2.79 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.66 ▲0.39 |
Easter Egg /wp-admin/options-general.php?page=easter_egg | 3.37 | 33.18 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easter Eggs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,024 ▲263 | 15.21 ▲0.85 | 6.64 ▲5.05 | 43.32 ▲2.92 |
Dashboard /wp-admin | 2,343 ▲169 | 6.19 ▲0.52 | 121.03 ▲36.57 | 41.56 ▼0.56 |
Posts /wp-admin/edit.php | 2,274 ▲174 | 3.40 ▲1.26 | 43.56 ▲5.90 | 30.43 ▼5.11 |
Add New Post /wp-admin/post-new.php | 6,270 ▲4,742 | 26.01 ▲2.77 | 912.75 ▲228.71 | 36.87 ▼20.67 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.26 ▲0.04 | 79.51 ▼38.31 | 41.90 ▼7.19 |
Easter Egg /wp-admin/options-general.php?page=easter_egg | 1,150 | 3.16 | 38.56 | 74.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=easter_egg
- > Notice in wp-content/plugins/easter-egg/admin/class-easter-egg-scaryking-admin.php+231
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=easter_egg
- > Warning in wp-content/plugins/easter-egg/admin/class-easter-egg-scaryking-admin.php+318
array_key_exists() expects parameter 2 to be array, bool given
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easter-egg/public/partials/easter-egg-scaryking-public-display.php
- > /wp-content/plugins/easter-egg/admin/partials/easter-egg-scaryking-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easter-egg/includes/class-easter-egg-scaryking-metabox.php:9
- > 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 issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 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
10 plugin tags: easter eggs, gutschein, feature, marketing, post...
easter-egg/easter-egg-scaryking.php 62% from 13 tests
The main PHP file in "Easter Eggs" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("easter-egg.php" instead of "easter-egg-scaryking.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.1")
- Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,324 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 207 | 555 | 719 |
JavaScript | 3 | 89 | 83 | 511 |
CSS | 3 | 12 | 15 | 94 |
PHP code Passed 2 tests
A brief analysis 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.36 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 39 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 23.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
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 |
public/img/default.png | 14.51KB | 8.90KB | ▼ 38.71% |