Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wpxp-background-media/wpxp-background-media.php+379
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.86ms] Passed 4 tests
A check of server-side resources used by WPXP Background Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.11 | 56.73 ▲15.67 |
Dashboard /wp-admin | 3.49 ▲0.15 | 49.98 ▼4.62 |
Posts /wp-admin/edit.php | 3.61 ▲0.21 | 52.07 ▼3.41 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.27 | 86.43 ▼25.29 |
Media Library /wp-admin/upload.php | 3.42 ▲0.15 | 38.89 ▲1.90 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WPXP Background Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.49 ▼0.67 | 14.41 ▲12.77 | 47.14 ▲6.42 |
Dashboard /wp-admin | 2,215 ▲38 | 5.58 ▼0.08 | 88.25 ▼4.03 | 42.60 ▼3.34 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.15 ▲0.14 | 35.53 ▼2.21 | 36.58 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,424 ▼104 | 17.86 ▼5.21 | 632.38 ▲8.97 | 52.11 ▲2.00 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.19 ▲0.03 | 103.54 ▼0.01 | 46.43 ▲2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 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
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wpxp-background-media/admin/classes/media-queries.php
- > /wp-content/plugins/wpxp-background-media/admin/classes/media-metadata.php
- > /wp-content/plugins/wpxp-background-media/wpxp-background-media.php
- > /wp-content/plugins/wpxp-background-media/admin/index.php
- > /wp-content/plugins/wpxp-background-media/admin/inc/config.php
- > /wp-content/plugins/wpxp-background-media/admin/classes/overlay.php
- > /wp-content/plugins/wpxp-background-media/admin/inc/descriptions.php
- > /wp-content/plugins/wpxp-background-media/admin/classes/settings.php
- > /wp-content/plugins/wpxp-background-media/admin/inc/helpers.php
- > /wp-content/plugins/wpxp-background-media/admin/classes/metabox-display.php
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 96% from 29 tests
readme.txt Passed 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
4 plugin tags: media, video, image, background
wpxp-background-media/wpxp-background-media.php 92% from 13 tests
The principal PHP file in "WPXP Background Media" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)
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
There were no executable files found in this plugin2,875 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 606 | 776 | 1,992 |
CSS | 3 | 26 | 11 | 637 |
JavaScript | 2 | 53 | 104 | 246 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 172 | |
▷ Static methods | 29 | 16.86% |
▷ Public methods | 66 | 38.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 106 | 61.63% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 34.97KB | 14.28KB | ▼ 59.16% |