78% easter-egg-drop

Code Review | Easter Egg Drop

WordPress plugin Easter Egg Drop scored78%from 54 tests.

About plugin

  • Plugin page: easter-egg-drop
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Mar 25, 2021
  • Latest release: Apr 4, 2021
  • Number of updates: 14
  • Update frequency: every 0.7 days
  • Top authors: preeve (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,140 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0834.32 ▼2.73
Dashboard /wp-admin3.32 ▲0.0246.86 ▼1.08
Posts /wp-admin/edit.php3.37 ▲0.0146.27 ▼2.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.11 ▲4.72
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▲3.68
Easter Egg Drop /wp-admin/options-general.php?page=square-media-egg-settings-page3.2132.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲21613.55 ▼0.8510.54 ▲8.8636.20 ▼5.72
Dashboard /wp-admin2,213 ▲365.84 ▲0.76107.93 ▲3.9042.61 ▼3.33
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0440.80 ▲3.8236.74 ▲4.09
Add New Post /wp-admin/post-new.php1,545 ▲2522.87 ▼0.48580.48 ▼95.9955.71 ▲6.57
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0198.50 ▲3.0440.55 ▼4.23
Easter Egg Drop /wp-admin/options-general.php?page=square-media-egg-settings-page8352.0624.0726.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP11419201
CSS16177
JavaScript17133
SVG1001

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 code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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