Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼0.70ms] Passed 4 tests
Analyzing server-side resources used by Easter Egg Drop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 34.32 ▼2.73 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.86 ▼1.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.27 ▼2.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.11 ▲4.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.23 ▲3.68 |
Easter Egg Drop /wp-admin/options-general.php?page=square-media-egg-settings-page | 3.21 | 32.98 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Easter Egg Drop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲216 | 13.55 ▼0.85 | 10.54 ▲8.86 | 36.20 ▼5.72 |
Dashboard /wp-admin | 2,213 ▲36 | 5.84 ▲0.76 | 107.93 ▲3.90 | 42.61 ▼3.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.04 | 40.80 ▲3.82 | 36.74 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 22.87 ▼0.48 | 580.48 ▼95.99 | 55.71 ▲6.57 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.01 | 98.50 ▲3.04 | 40.55 ▼4.23 |
Easter Egg Drop /wp-admin/options-general.php?page=square-media-egg-settings-page | 835 | 2.06 | 24.07 | 26.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
Good news, no errors were detected
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
The following issues need your attention
- 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/easter-egg-drop/sm-easter-eggs.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=square-media-egg-settings-page
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=square-media-egg-settings-page 142 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: easter egg animation, easter egg, easter
easter-egg-drop/sm-easter-eggs.php 92% from 13 tests
"Easter Egg Drop" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easter-egg-drop.php" instead of "sm-easter-eggs.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
Everything looks great! No dangerous files found in this plugin312 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 19 | 201 |
CSS | 1 | 6 | 1 | 77 |
JavaScript | 1 | 7 | 1 | 33 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin