84% christmasify

Code Review | Christmasify!

WordPress plugin Christmasify! scored84%from 54 tests.

About plugin

  • Plugin page: christmasify
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2016
  • Latest release: Nov 30, 2023
  • Number of updates: 35
  • Update frequency: every 73.3 days
  • Top authors: cyberfoxdigital (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /47,272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.63ms] Passed 4 tests

A check of server-side resources used by Christmasify!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.78 ▼3.39
Dashboard /wp-admin3.39 ▲0.0948.48 ▼3.28
Posts /wp-admin/edit.php3.51 ▲0.1546.58 ▼2.58
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.65 ▼9.27
Media Library /wp-admin/upload.php3.31 ▲0.0832.76 ▲1.13

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Christmasify!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18113.77 ▼0.877.80 ▲6.0539.67 ▼2.69
Dashboard /wp-admin2,262 ▲955.62 ▼0.0496.23 ▼14.4542.55 ▼0.21
Posts /wp-admin/edit.php2,167 ▲672.01 ▲0.0639.31 ▼4.1736.03 ▼2.66
Add New Post /wp-admin/post-new.php1,543 ▲1723.24 ▲0.22594.34 ▼54.4548.46 ▼6.25
Media Library /wp-admin/upload.php1,467 ▲704.22 ▲0.0395.49 ▼3.1040.77 ▼0.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/christmasify/public/partials/cf-christmasification-public-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/christmasify/admin/partials/cf-christmasification-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: cyberfoxdigital, cyber fox, music, santa, christmas font...

christmasify/cf-christmasification.php 92% from 13 tests

"Christmasify!" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("christmasify.php" instead of "cf-christmasification.php")

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
Success! There were no dangerous files found in this plugin801 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12150533379
CSS3314196
Sass1100166
JavaScript3122760

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2076.92%
▷ Protected methods00.00%
▷ Private methods623.08%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.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
1 PNG file occupies 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/img/xmas-frame.png216.13KB54.26KB▼ 74.90%