89% christmas-effect

Code Review | Christmas Effect for wordpress Website

WordPress plugin Christmas Effect for wordpress Website scored89%from 54 tests.

About plugin

  • Plugin page: christmas-effect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Jul 12, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: php-developer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼11.95ms] Passed 4 tests

This is a short check of server-side resources used by Christmas Effect for wordpress Website
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0226.61 ▼14.43
Dashboard /wp-admin3.36 ▲0.0144.39 ▼14.09
Posts /wp-admin/edit.php3.50 ▲0.1449.41 ▼0.79
Add New Post /wp-admin/post-new.php5.51 ▼0.3871.43 ▼18.48
Media Library /wp-admin/upload.php3.28 ▲0.0433.06 ▲0.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Christmas Effect for wordpress Website: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.18 ▼0.202.52 ▲0.9037.44 ▼3.75
Dashboard /wp-admin2,219 ▲425.64 ▲0.0982.38 ▼5.2638.53 ▼5.04
Posts /wp-admin/edit.php2,121 ▲212.02 ▲0.0236.61 ▲2.9533.73 ▼3.77
Add New Post /wp-admin/post-new.php1,544 ▲1823.98 ▲0.45647.13 ▼17.7862.69 ▲10.66
Media Library /wp-admin/upload.php1,418 ▲184.25 ▲0.03108.74 ▲12.6047.13 ▲1.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (You have a option to removed comments only from posts or pages.) image missing
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

christmas-effect/christmas_effect.php 92% from 13 tests

"Christmas Effect for wordpress Website" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("christmas-effect.php" instead of "christmas_effect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected857 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP214172856
JavaScript1101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 1.14MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/snoweffect-logo.png0.32KB0.32KB▼ 0.91%
screenshot-2.png130.70KB65.79KB▼ 49.67%
screenshot-1.png303.09KB159.32KB▼ 47.43%
screenshot-3.png354.41KB122.82KB▼ 65.35%
screenshot-4.png376.75KB122.66KB▼ 67.44%