Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php+55
Undefined variable: wp_cycle_defaults
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.07ms] Passed 4 tests
This is a short check of server-side resources used by AB Background Slideshow
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.71 ▼35.45 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.35 ▼44.78 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 8.05 ▼40.65 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.10 ▼83.41 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.86 ▼26.42 |
AB BG Slideshow /wp-admin/options-general.php?page=ab-bg-slideshow | 2.10 | 7.26 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AB Background Slideshow: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲242 | 14.22 ▼0.54 | 15.59 ▲13.94 | 42.21 ▼5.84 |
Dashboard /wp-admin | 2,211 ▲23 | 4.84 ▼1.02 | 108.29 ▼7.40 | 43.10 ▼3.95 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.12 ▲0.06 | 40.35 ▲0.91 | 36.29 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.63 ▼5.15 | 691.00 ▲35.92 | 53.64 ▼4.25 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.22 ▼0.07 | 93.00 ▼7.81 | 42.15 ▼2.13 |
AB BG Slideshow /wp-admin/options-general.php?page=ab-bg-slideshow | 792 | 2.06 | 26.74 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php+55
Undefined variable: wp_cycle_defaults
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ab-bg-slideshow
- > Notice in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php+55
Undefined variable: wp_cycle_defaults
- > GET request to /wp-admin/options-general.php?page=ab-bg-slideshow
- > Notice in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php+77
Undefined index: action
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ab-bg-slideshow
- > Notice in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php+154
Trying to access array offset on value of type bool
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ab-background-slideshow/ab-bg-slideshow.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (AB BG Slideshow admin panel.) image not found
ab-background-slideshow/ab-bg-slideshow.php 92% from 13 tests
The principal PHP file in "AB Background Slideshow" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ab-background-slideshow.php" instead of "ab-bg-slideshow.php")
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
Success! There were no dangerous files found in this plugin845 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 68 | 27 | 531 |
PHP | 1 | 14 | 44 | 197 |
CSS | 2 | 5 | 10 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 14 | |
▷ Named functions | 14 | 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
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 79.28KB | 28.68KB | ▼ 63.82% |
images/bg/page-bottom.png | 0.61KB | 0.30KB | ▼ 50.32% |
images/bg/page-bg.png | 0.19KB | 0.09KB | ▼ 49.74% |
images/bg/page-top.png | 0.62KB | 0.32KB | ▼ 48.18% |