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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.43 ▲0.32 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.80 ▼19.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.33 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.10 ▼15.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,700 ▲938 | 13.86 ▼0.49 | 12.53 ▲10.84 | 49.37 ▲2.71 |
Dashboard /wp-admin | 2,215 ▲40 | 5.62 ▼0.11 | 89.67 ▼24.98 | 41.16 ▼6.48 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.96 ▼0.06 | 37.41 ▼3.98 | 33.51 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.52 ▲0.33 | 624.72 ▼77.04 | 60.51 ▲8.59 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▲0.00 | 98.61 ▼12.81 | 44.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 97 | 11 | 671 |
CSS | 4 | 58 | 9 | 448 |
JavaScript | 5 | 12 | 34 | 70 |
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 code | 0.17 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 19.05% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/b-ball_n1.png | 8.13KB | 3.38KB | ▼ 58.38% |
public/img/b-ball_n8.png | 5.03KB | 2.50KB | ▼ 50.27% |
public/img/b-ball_i4.png | 5.86KB | 2.98KB | ▼ 49.11% |
public/img/b-ball_i3.png | 2.61KB | 1.83KB | ▼ 29.73% |
public/img/b-ball_n2.png | 5.77KB | 2.68KB | ▼ 53.57% |