84% share-christmas-tunes-decorations

Code Review | Share Christmas - Tunes and Decorations

WordPress plugin Share Christmas - Tunes and Decorations scored84%from 54 tests.

About plugin

  • Plugin page: share-christmas-t...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Dec 21, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 8
  • Update frequency: every 41.3 days
  • Top authors: johnvictor82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /591 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.01MB] [CPU: ▼9.14ms] Passed 4 tests

A check of server-side resources used by Share Christmas - Tunes and Decorations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1041.43 ▲0.32
Dashboard /wp-admin3.32 ▼0.0348.80 ▼19.83
Posts /wp-admin/edit.php3.37 ▲0.0143.33 ▼1.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.10 ▼15.89
Media Library /wp-admin/upload.php3.24 ▲0.0135.08 ▲0.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
Activated_Plugin
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Share Christmas - Tunes and Decorations
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲93813.86 ▼0.4912.53 ▲10.8449.37 ▲2.71
Dashboard /wp-admin2,215 ▲405.62 ▼0.1189.67 ▼24.9841.16 ▼6.48
Posts /wp-admin/edit.php2,120 ▲171.96 ▼0.0637.41 ▼3.9833.51 ▼7.01
Add New Post /wp-admin/post-new.php1,543 ▲1723.52 ▲0.33624.72 ▼77.0460.51 ▲8.59
Media Library /wp-admin/upload.php1,417 ▲174.18 ▲0.0098.61 ▼12.8144.64 ▼5.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • Activated_Plugin

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at 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/share-christmas-tunes-decorations/public/partials/wpchts_gky-load-public-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function selected() in wp-content/plugins/share-christmas-tunes-decorations/admin/partials/wpchts_gky-admin-display.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: carol, geeky nigeria, christmas font, decorations, christmas...

share-christmas-tunes-decorations/share-christmas.php 92% from 13 tests

Analyzing the main PHP file in "Share Christmas - Tunes and Decorations" version 1.0.2
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("share-christmas-tunes-decorations.php" instead of "share-christmas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,189 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP99711671
CSS4589448
JavaScript5123470

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.75
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.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
17 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/b-ball_n1.png8.13KB3.38KB▼ 58.38%
public/img/b-ball_n8.png5.03KB2.50KB▼ 50.27%
public/img/b-ball_i4.png5.86KB2.98KB▼ 49.11%
public/img/b-ball_i3.png2.61KB1.83KB▼ 29.73%
public/img/b-ball_n2.png5.77KB2.68KB▼ 53.57%