Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼18.11MB] [CPU: ▼3,395,328.05ms] Passed 4 tests
A check of server-side resources used by RokGallery Background Slideshow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.17 | 10.71 ▼34.41 |
Dashboard /wp-admin | 2.35 ▼66.65 | 11.92 ▼13,581,144.25 |
Posts /wp-admin/edit.php | 2.35 ▼1.05 | 13.29 ▼40.86 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.58 | 12.79 ▼92.67 |
Media Library /wp-admin/upload.php | 2.35 ▼0.92 | 13.11 ▼25.08 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_background_slideshow |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RokGallery Background Slideshow
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.10 | 1.84 ▲0.13 | 40.20 ▼0.36 |
Dashboard /wp-admin | 2,198 ▲27 | 5.62 ▲0.11 | 84.90 ▼5.00 | 39.02 ▼5.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.07 | 39.87 ▲0.11 | 38.46 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▼0.61 | 642.16 ▼47.03 | 49.92 ▼10.99 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.08 | 98.36 ▼19.66 | 42.93 ▼7.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method RokGallery_Background_Slideshow_Widget::register() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_background_slideshow
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rokgallery-background-slideshow/views/widget.php
- > /wp-content/plugins/rokgallery-background-slideshow/init.php
- > /wp-content/plugins/rokgallery-background-slideshow/views/form.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: background, slider, widget, gallery, slideshow...
rokgallery-background-slideshow/init.php 85% from 13 tests
"RokGallery Background Slideshow" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("rokgallery-background-slideshow.php" instead of "init.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
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
Everything looks great! No dangerous files found in this plugin481 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 78 | 60 | 317 |
PHP | 3 | 25 | 34 | 142 |
CSS | 1 | 2 | 2 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 4 | 36.36% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
15 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/overlays/09.png | 0.20KB | 0.10KB | ▼ 50.48% |
assets/overlays/03.png | 0.20KB | 0.10KB | ▼ 53.11% |
assets/overlays/10.png | 0.13KB | 0.10KB | ▼ 22.63% |
assets/overlays/12.png | 0.13KB | 0.11KB | ▼ 13.85% |
assets/overlays/15.png | 0.13KB | 0.12KB | ▼ 13.87% |