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.09MB] [CPU: ▼136.30ms] Passed 4 tests
This is a short check of server-side resources used by WP Change logo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.94 ▲16.77 |
Dashboard /wp-admin | 3.13 ▲0.08 | 56.43 ▲11.20 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 45.05 ▲7.68 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 89.70 ▼561.79 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 36.35 ▼2.28 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Change logo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 16.91 ▲1.25 | 13.00 ▲2.80 | 48.51 ▲0.21 |
Dashboard /wp-admin | 3,016 ▲85 | 6.57 ▲0.50 | 145.08 ▼21.79 | 102.77 ▼1.80 |
Posts /wp-admin/edit.php | 2,791 ▲52 | 3.14 ▲0.42 | 72.84 ▲3.69 | 86.28 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,651 ▲151 | 21.29 ▲2.57 | 335.61 ▼64.34 | 104.03 ▼2.99 |
Media Library /wp-admin/upload.php | 1,856 ▲49 | 5.39 ▲0.38 | 142.69 ▼24.44 | 124.55 ▲12.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-change-logo/public/partials/wp-change-logo-public-display.php
- > /wp-content/plugins/wp-change-logo/admin/partials/wp-change-logo-admin-display.php
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-change-logo ===
) - Screenshots: Please add images for these screenshots: #1 (This screen shot display plugin in install plugin page screenshot-1.(png|jpg|jpeg|gif).), #2 (This screen shot display setting page in admin dashbaord screenshot-2.(png|jpg|jpeg|gif).), #3 (This screen shot display logo settings in admin dashbaord screenshot-3.(png|jpg|jpeg|gif).), #4 (This screen shot display logo page after customization screenshot-4.(png|jpg|jpeg|gif).)
wp-change-logo/wp-change-logo.php Passed 13 tests
Analyzing the main PHP file in "WP Change logo" version 1.0.0
127 characters long description:
This plugin helps you to customize wordpress defualt login page. You can change logo and body background color, text color etc.
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
Everything looks great! No dangerous files found in this plugin411 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 586 | 344 |
CSS | 2 | 3 | 8 | 58 |
JavaScript | 2 | 4 | 54 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.PNG | 47.94KB | 21.91KB | ▼ 54.31% |
assets/screenshot-4.PNG | 13.58KB | 6.95KB | ▼ 48.81% |
assets/screenshot-1.PNG | 6.67KB | 4.51KB | ▼ 32.47% |
assets/screenshot-2.PNG | 2.57KB | 2.01KB | ▼ 22.04% |