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.02MB] [CPU: ▲2.52ms] Passed 4 tests
Analyzing server-side resources used by Custom Background Extended
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.83 ▲1.29 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.81 ▲6.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.33 ▲6.12 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.60 ▲1.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.52 ▲1.09 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Custom Background Extended: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 14.74 ▲0.46 | 1.63 ▼0.30 | 40.13 ▼0.64 |
Dashboard /wp-admin | 2,206 ▲14 | 5.91 ▲0.99 | 105.29 ▼13.70 | 38.02 ▼10.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 39.88 ▼2.47 | 35.80 ▼3.66 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,951 | 19.69 ▼3.80 | 922.27 ▲273.51 | 39.98 ▼12.69 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.20 ▼0.01 | 102.26 ▲2.23 | 41.83 ▲0.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-background-extended/admin/class-custom-backgrounds-admin.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-background-extended/inc/class-custom-backgrounds-filter.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-background-extended/custom-background-extended.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom background meta box.), #2 (Custom background meta box on the edit post screen.), #3 (Multiple background views of a single post.)
custom-background-extended/custom-background-extended.php 92% from 13 tests
The main PHP script in "Custom Background Extended" version 0.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 266 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin458 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 166 | 446 | 353 |
JavaScript | 2 | 38 | 42 | 60 |
Markdown | 1 | 39 | 0 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 3 | 100.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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.42MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 106.65KB | 44.77KB | ▼ 58.03% |
screenshot-3.png | 14.21KB | 12.01KB | ▼ 15.47% |
screenshot-2.png | 306.66KB | 107.13KB | ▼ 65.07% |