Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Parse error in wp-content/plugins/simple-slideshow-background/admin-form.php+54
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.23ms] Passed 4 tests
Analyzing server-side resources used by Simple Slideshow Background
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.43 ▼3.98 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.96 ▼2.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.70 ▼4.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.08 ▼20.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼4.40 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
simple-slideshow_settings |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Slideshow Background
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.08 | 1.70 ▼0.28 | 39.69 ▼6.55 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.94 | 94.94 ▼20.07 | 40.08 ▼7.07 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.08 | 39.61 ▼0.81 | 35.43 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.47 ▲0.05 | 664.67 ▲9.03 | 52.77 ▲3.13 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.03 | 95.19 ▼12.02 | 42.63 ▼1.21 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- simple-slideshow_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-slideshow-background/admin-menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-slideshow-background/display-background.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-slideshow-background/simple-slideshow-background.php:19
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/simple-slideshow-background/admin-table.php on line 143
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/simple-slideshow-background/admin-form.php on line 54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: slideshow, background
simple-slideshow-background/simple-slideshow-background.php Passed 13 tests
The primary PHP file in "Simple Slideshow Background" version 0.2 is used by WordPress to initiate all plugin functionality
105 characters long description:
Add a full screen slideshow background which transitions through photos from you Wordpress media library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin310 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 58 | 49 | 264 |
CSS | 2 | 10 | 7 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin