Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/custom-background-for-post-and-page/custombg.php+428
syntax error, unexpected end of file
Server metrics [RAM: ▼0.00MB] [CPU: ▼149.14ms] Passed 4 tests
An overview of server-side resources used by Custom Background for Post and Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 37.43 ▲14.98 |
Dashboard /wp-admin | 3.06 ▲0.00 | 46.00 ▼3.32 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.84 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 87.39 ▼582.36 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 28.17 ▼7.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Custom Background for Post and Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.32 ▲0.89 | 9.62 ▼0.44 | 47.46 ▲1.09 |
Dashboard /wp-admin | 2,967 ▲36 | 5.95 ▼0.05 | 143.77 ▼13.67 | 100.09 ▼10.14 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 78.09 ▲9.35 | 87.76 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.78 ▲0.12 | 394.33 ▼2.52 | 111.18 ▲4.98 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▲0.03 | 148.29 ▼16.28 | 116.29 ▲6.58 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/custom-background-for-post-and-page/custombg.php on line 428
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 to be fixed:
- Contributors: The plugin contributors field is not present
custom-background-for-post-and-page/custombg.php 92% from 13 tests
The main PHP script in "Custom Background for Post and Page" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-background-for-post-and-page.php" instead of "custombg.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,061 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 778 |
PHP | 1 | 109 | 36 | 283 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
hs.png | 2.62KB | 7.54KB | 0.00% |
hv.png | 2.80KB | 7.32KB | 0.00% |