74% merry-christmas-everyone

Code Review | Merry Christmas Everyone

WordPress plugin Merry Christmas Everyone scored74%from 54 tests.

About plugin

  • Plugin page: merry-christmas-e...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Dec 23, 2014
  • Number of updates: 11
  • Update frequency: every 67.7 days
  • Top authors: svnlabs (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active /17,727 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.41ms] Passed 4 tests

A check of server-side resources used by Merry Christmas Everyone
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.82 ▲0.16
Dashboard /wp-admin2.99 ▼0.3122.33 ▼26.62
Posts /wp-admin/edit.php2.99 ▼0.3623.95 ▼25.59
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.52 ▼79.85
Media Library /wp-admin/upload.php2.99 ▼0.2330.66 ▼5.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
xmas_media
can_compress_scripts
xmas_url
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Merry Christmas Everyone
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.17 ▼1.223.29 ▲1.0541.82 ▼9.36
Dashboard /wp-admin2,218 ▲274.93 ▼0.98100.49 ▼0.0867.13 ▲24.08
Posts /wp-admin/edit.php2,107 ▲152.02 ▼0.0036.07 ▼0.2434.94 ▲1.39
Add New Post /wp-admin/post-new.php1,680 ▲15220.04 ▲1.63736.34 ▲111.4059.12 ▲12.19
Media Library /wp-admin/upload.php1,403 ▲184.14 ▼0.07126.63 ▲26.3849.35 ▲4.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • xmas_url
    • widget_recent-comments
    • xmas_media

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/merry-christmas-everyone/merry-christmas-everyone.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Santa flying over website), #2 (Santa giving gifts), #3 (Admin merry christmas everyone)
The official readme.txt is a good inspiration

merry-christmas-everyone/merry-christmas-everyone.php Passed 13 tests

"Merry Christmas Everyone" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Merry Christmas! Santa is flying here with gifts, happiness, candies and snow and much, much more. Come on in and check us out!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected604 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32823497
PHP17014107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/santa01.png9.32KB4.63KB▼ 50.36%
images/MerryChristmaseveryone.png5.76KB2.59KB▼ 55.04%
images/santa02.png10.80KB4.24KB▼ 60.73%
screenshot-3.png40.71KB12.38KB▼ 69.60%
images/santa1.png113.75KB41.65KB▼ 63.39%