Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼143.52ms] Passed 4 tests
Server-side resources used by Change Logo On Occasions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 28.86 ▲4.35 |
Dashboard /wp-admin | 3.09 ▲0.04 | 57.01 ▲8.31 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 48.66 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 99.17 ▼575.13 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.98 ▼4.18 |
Add New /wp-admin/post-new.php?post_type=doodle_logo | 3.10 | 49.62 |
Logos /wp-admin/edit.php?post_type=doodle_logo | 3.08 | 34.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Change Logo On Occasions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,735 ▲139 | 15.84 ▲0.27 | 10.62 ▲1.53 | 49.90 ▼1.46 |
Dashboard /wp-admin | 3,029 ▲99 | 5.98 ▼0.19 | 158.16 ▲9.17 | 117.59 ▼4.25 |
Posts /wp-admin/edit.php | 2,797 ▲58 | 2.70 ▲0.01 | 72.97 ▼6.10 | 93.48 ▼9.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▼46 | 18.64 ▼2.02 | 395.55 ▼18.64 | 121.70 ▼22.50 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 4.99 ▼0.04 | 158.89 ▼46.19 | 119.25 ▼21.79 |
Add New /wp-admin/post-new.php?post_type=doodle_logo | 2,261 | 4.55 | 114.99 | 88.79 |
Logos /wp-admin/edit.php?post_type=doodle_logo | 1,451 | 2.63 | 66.58 | 82.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-logo-on-occasions/change-logo-on-occasions.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: time, google, doodle, event management, events...
change-logo-on-occasions/change-logo-on-occasions.php Passed 13 tests
The principal PHP file in "Change Logo On Occasions" v. 1.0 is loaded by WordPress automatically on each request
84 characters long description:
Change logos on certain occasions (e.g. Christmas, Halloween) just like Google does.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected132 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 27 | 98 |
PO File | 1 | 5 | 6 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin