89% christmas-greetings

Code Review | Christmas Greetings

WordPress plugin Christmas Greetings scored89%from 54 tests.

About plugin

  • Plugin page: christmas-greetings
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2017
  • Latest release: Oct 28, 2021
  • Number of updates: 45
  • Update frequency: every 32.0 days
  • Top authors: technocrackers (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

800+ active /35,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.33ms] Passed 4 tests

An overview of server-side resources used by Christmas Greetings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2344.28 ▲7.43
Dashboard /wp-admin3.48 ▲0.1847.89 ▼0.66
Posts /wp-admin/edit.php3.53 ▲0.1749.61 ▲1.58
Add New Post /wp-admin/post-new.php6.06 ▲0.1782.86 ▼19.18
Media Library /wp-admin/upload.php3.40 ▲0.1735.72 ▲4.96

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
genral_settings
db_upgraded
christmas_display_on
advance_settings
can_compress_scripts
display_on_pages
widget_recent-comments

Browser metrics Passed 4 tests

Christmas Greetings: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.31 ▼1.071.92 ▲0.0742.56 ▲0.60
Dashboard /wp-admin2,234 ▲435.79 ▼0.0997.59 ▼4.2180.48 ▲35.25
Posts /wp-admin/edit.php2,117 ▲282.01 ▲0.0138.64 ▼4.0334.22 ▼1.00
Add New Post /wp-admin/post-new.php1,531 ▲1217.55 ▼5.43706.59 ▲77.2857.70 ▲6.87
Media Library /wp-admin/upload.php1,413 ▲254.22 ▲0.0594.76 ▼3.0573.77 ▲29.58

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • genral_settings
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • display_on_pages
    • widget_recent-comments
    • can_compress_scripts
    • advance_settings
    • widget_theysaidso_widget
    • christmas_display_on

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: snowflakes, christmas, christmas snow, christmas holiday, santa-claus...

christmas-greetings/christmas_greetings.php 85% from 13 tests

The main file in "Christmas Greetings" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("christmas-greetings.php" instead of "christmas_greetings.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin6,222 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS843482,444
JavaScript8132951,953
PHP31101,825

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity32.33
▷ Minimum class complexity32.00
▷ Maximum class complexity33.00
Average method complexity11.44
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
42 compressed PNG files occupy 1.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/santa.png1.30KB1.34KB0.00%
new-year/img/baloon.png14.52KB15.02KB0.00%
css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
new-year/img/goldan-baloon.png7.44KB3.47KB▼ 53.30%
img/decoration.png178.42KB188.57KB0.00%