Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.81ms] Passed 4 tests
Analyzing server-side resources used by Nice Backgrounds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 46.32 ▲1.16 |
Dashboard /wp-admin | 3.41 ▲0.11 | 52.29 ▼3.29 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 52.36 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.98 ▼18.38 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.82 ▲4.05 |
Nice Backgrounds /wp-admin/themes.php?page=nicebackgrounds | 3.67 | 52.01 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
nicebackgrounds_sizes |
db_upgraded |
nicebackgrounds_unsplash_categories |
nicebackgrounds_images |
nicebackgrounds_unsplash_keywords |
widget_recent-comments |
nicebackgrounds_unsplash_users |
widget_theysaidso_widget |
nicebackgrounds_reserves |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Nice Backgrounds
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.76 ▲0.17 | 1.85 ▼0.09 | 40.79 ▼1.96 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▲0.01 | 90.70 ▼3.94 | 41.39 ▲1.16 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▲0.01 | 37.44 ▼3.45 | 35.44 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.02 ▼0.67 | 699.05 ▲32.78 | 59.16 ▼2.23 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▼0.03 | 95.30 ▼14.29 | 41.33 ▼4.80 |
Nice Backgrounds /wp-admin/themes.php?page=nicebackgrounds | 1,458 | 2.42 | 52.32 | 56.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 13 options in the database
- nicebackgrounds_unsplash_keywords
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- nicebackgrounds_unsplash_categories
- nicebackgrounds_sets
- can_compress_scripts
- db_upgraded
- nicebackgrounds_unsplash_users
- nicebackgrounds_sizes
- ...
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)
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nicebackgrounds/nicebackgrounds.php:204
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
nicebackgrounds/nicebackgrounds.php Passed 13 tests
The entry point to "Nice Backgrounds" version 1.0 is a PHP file that has certain tags in its header comment area
81 characters long description:
Manage random adaptive background images and pull beautiful photos from Unsplash.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,524 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 387 | 967 | 1,905 |
JavaScript | 11 | 149 | 139 | 1,089 |
CSS | 4 | 13 | 86 | 775 |
LESS | 15 | 175 | 50 | 734 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 120 | |
▷ Named functions | 120 | 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
No PNG images were found in this plugin