84% hello-christmas

Code Review | Hello Christmas

WordPress plugin Hello Christmas scored84%from 54 tests.

About plugin

  • Plugin page: hello-christmas
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: Nov 28, 2014
  • Number of updates: 10
  • Update frequency: every 36.0 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,631 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.65ms] Passed 4 tests

A check of server-side resources used by Hello Christmas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.87 ▲0.87
Dashboard /wp-admin3.31 ▲0.0045.16 ▼3.97
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.45 ▲3.08
Media Library /wp-admin/upload.php3.23 ▲0.0035.62 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hello Christmas: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.39 ▼1.091.88 ▼0.2738.81 ▼15.10
Dashboard /wp-admin2,203 ▲185.83 ▼0.0696.02 ▼4.9642.34 ▼3.61
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0539.15 ▼1.7039.51 ▲3.55
Add New Post /wp-admin/post-new.php1,542 ▼218.24 ▲0.11587.16 ▼22.0681.48 ▲23.06
Media Library /wp-admin/upload.php1,391 ▲94.19 ▼0.05100.87 ▼7.8842.30 ▼5.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-christmas/hello-christmas.php:93

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% 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
3 plugin tags: holiday, christmas, winter

hello-christmas/hello-christmas.php 92% from 13 tests

The main PHP script in "Hello Christmas" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11122160

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.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin