Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Background Colour
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.26 ▲4.24 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.85 ▼1.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.29 ▼4.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.45 ▼17.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.06 ▼4.67 |
Dynamic Background /wp-admin/themes.php?page=wordpoolbg | 3.18 | 29.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
wordpool-background-options |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dynamic Background Colour
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.43 ▼0.95 | 8.68 ▲7.00 | 43.82 ▼0.47 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.06 | 81.61 ▼6.49 | 39.18 ▼1.31 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.02 ▲0.02 | 34.03 ▼0.92 | 35.63 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.34 ▲0.18 | 644.64 ▼30.63 | 50.25 ▼0.82 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.02 | 93.79 ▼18.66 | 41.36 ▼6.99 |
Dynamic Background /wp-admin/themes.php?page=wordpoolbg | 952 | 2.01 | 23.40 | 28.69 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=wordpoolbg
- > Notice in wp-content/plugins/dynamic-background/dynamic-background.php+353
Undefined offset: 0
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dynamic-background/dynamic-background.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: transparency, color wheel, background
dynamic-background/dynamic-background.php Passed 13 tests
Analyzing the main PHP file in "Dynamic Background Colour" version 1.0
109 characters long description:
Continuously and gently changes color of background and/or pictures with transparent areas on selected pages.
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 plugin521 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 61 | 348 |
JavaScript | 1 | 26 | 41 | 173 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin