Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.85ms] Passed 4 tests
This is a short check of server-side resources used by Easy BG
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.13 ▲12.97 |
Dashboard /wp-admin | 3.08 ▲0.02 | 43.02 ▲7.62 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 42.11 ▼4.89 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.41 ▼563.19 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.16 ▲1.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Easy BG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲150 | 15.99 ▲0.59 | 10.73 ▲0.40 | 45.17 ▼5.35 |
Dashboard /wp-admin | 2,982 ▲51 | 5.90 ▼0.08 | 132.58 ▼14.48 | 129.05 ▲18.56 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.71 ▲0.00 | 63.24 ▼9.67 | 86.66 ▼8.68 |
Add New Post /wp-admin/post-new.php | 1,689 ▲191 | 18.69 ▼0.18 | 366.84 ▼16.42 | 115.78 ▲2.75 |
Media Library /wp-admin/upload.php | 1,771 ▼39 | 5.04 ▲0.02 | 126.11 ▼17.67 | 141.73 ▲19.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-bg/js/index.php
- > /wp-content/plugins/easy-bg/imgs/index.php
- > /wp-content/plugins/easy-bg/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: background color, color, background
easy-bg/easy-bg.php Passed 13 tests
Analyzing the main PHP file in "Easy BG" version 1.0.0
119 characters long description:
Easy BG is a plugin that enables you to change the body color of your Wordpress site without the need to edit the code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin931 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 139 | 38 | 836 |
PHP | 7 | 11 | 21 | 93 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
imgs/menuicon.png | 3.55KB | 1.23KB | ▼ 65.31% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |