90% wp-easter-egg

Code Review | WP Easter Egg

WordPress plugin WP Easter Egg scored90%from 54 tests.

About plugin

  • Plugin page: wp-easter-egg
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Dec 16, 2014
  • Latest release: Jul 8, 2016
  • Number of updates: 36
  • Update frequency: every 15.8 days
  • Top authors: mmcachran (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /2,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.23ms] Passed 4 tests

Analyzing server-side resources used by WP Easter Egg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.09 ▼3.50
Dashboard /wp-admin3.37 ▲0.0347.12 ▼13.41
Posts /wp-admin/edit.php3.49 ▲0.1347.95 ▲2.96
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.21 ▼6.98
Media Library /wp-admin/upload.php3.30 ▲0.0737.91 ▲3.60
WP Easter Egg /wp-admin/options-general.php?page=wp_easter_egg_plugin3.2935.31

Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Easter Egg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.64 ▼0.735.09 ▲3.3139.00 ▼4.38
Dashboard /wp-admin2,213 ▲284.90 ▲0.02100.38 ▼8.3239.74 ▼1.14
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0338.22 ▲4.6833.68 ▼0.44
Add New Post /wp-admin/post-new.php1,536 ▲323.23 ▲0.04639.71 ▼17.3258.64 ▲14.29
Media Library /wp-admin/upload.php1,395 ▲134.21 ▼0.0899.15 ▲3.3443.55 ▲2.56
WP Easter Egg /wp-admin/options-general.php?page=wp_easter_egg_plugin1,1143.1041.7025.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: cornify, konami, easteregg, raptorize

wp-easter-egg/wp-easter-egg.php 92% from 13 tests

Analyzing the main PHP file in "WP Easter Egg" version 2.0.6
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
There were no executable files found in this plugin705 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript38139329
PHP46293305
Markdown134071

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.67
▷ Minimum class complexity5.00
▷ Maximum class complexity17.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.11MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/raptorize/raptor.png113.39KB118.43KB0.00%