84% christmas-ball-on-branch

Code Review | Christmas Ball on Branch

WordPress plugin Christmas Ball on Branch scored 84% from 54 tests.

About plugin

  • Plugin page: christmas-ball-on...
  • Plugin version: 0.8.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 20, 2011
  • Latest release: Nov 9, 2017
  • Number of updates: 25
  • Update frequency: every 86.0 days
  • Top authors: d3wp (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

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

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

This is a short check of server-side resources used by Christmas Ball on Branch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.80 ▼6.64
Dashboard /wp-admin3.31 ▲0.0045.22 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0044.37 ▼2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.32 ▲3.65
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▲0.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Christmas Ball on Branch
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6913.31 ▼1.441.84 ▼0.3242.31 ▼5.36
Dashboard /wp-admin2,209 ▲215.88 ▲1.0094.15 ▼26.9539.06 ▼7.23
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0636.72 ▼1.9733.71 ▲2.76
Add New Post /wp-admin/post-new.php1,534 ▲523.19 ▲4.99643.71 ▲29.1965.93 ▲5.03
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0193.17 ▼8.0540.07 ▼3.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/christmas-ball-on-branch/christmas-ball-on-branch.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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: snowman, ball on branch, snow, christmas ball, winter...

christmas-ball-on-branch/christmas-ball-on-branch.php Passed 13 tests

The primary PHP file in "Christmas Ball on Branch" version 0.8.3 is used by WordPress to initiate all plugin functionality
126 characters long description:
Add nice looking animated "Christmas Ball on Branch" image to the top right corner of your WP site and enjoy Christmas season.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1286

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin