Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.83ms] Passed 4 tests
Analyzing server-side resources used by Holiday Logo Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.22 ▲0.89 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.13 ▲3.88 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.63 ▼1.77 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.10 ▲4.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.00 ▲0.33 |
Holiday Logo Switcher /wp-admin/options-general.php?page=holiday-logo-switcher | 3.28 | 35.93 |
All Items /wp-admin/edit.php?post_type=holiday_logos | 3.35 | 38.45 |
Add New /wp-admin/post-new.php?post_type=holiday_logos | 3.36 | 49.77 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Holiday Logo Switcher: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.27 ▼1.29 | 4.84 ▲2.72 | 42.55 ▼0.51 |
Dashboard /wp-admin | 2,237 ▲49 | 5.88 ▲0.95 | 100.07 ▼3.05 | 42.83 ▲1.77 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.99 ▼0.02 | 41.44 ▲4.95 | 35.44 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,572 ▲36 | 18.48 ▼4.76 | 655.38 ▲16.24 | 52.54 ▼2.48 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.25 ▲0.07 | 104.08 ▲0.92 | 45.15 ▲1.53 |
Holiday Logo Switcher /wp-admin/options-general.php?page=holiday-logo-switcher | 853 | 2.05 | 24.30 | 37.08 |
All Items /wp-admin/edit.php?post_type=holiday_logos | 1,084 | 2.01 | 33.18 | 31.55 |
Add New /wp-admin/post-new.php?post_type=holiday_logos | 1,707 | 3.64 | 68.49 | 32.62 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/holiday-logo-switcher/holiday-logo-switcher.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/holiday-logo-switcher/includes/views/options-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/holiday-logo-switcher/includes/views/mb-hls-options.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/holiday-logo-switcher/includes/views/cpt-holiday-logos.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/holiday-logo-switcher/includes/views/opt_fields/dark-logo.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/holiday-logo-switcher/includes/views/opt_fields/default-logo.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in holiday-logo-switcher/assets to your readme.txt
holiday-logo-switcher/holiday-logo-switcher.php Passed 13 tests
"Holiday Logo Switcher" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Display a different logo depending on the holiday.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin275 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 50 | 83 | 274 |
CSS | 1 | 1 | 5 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 1 | 6.67% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 8.17KB | 3.39KB | ▼ 58.56% |