Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼5.29ms] Passed 4 tests
A check of server-side resources used by RG Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 42.40 ▲0.54 |
Dashboard /wp-admin | 3.59 ▲0.24 | 52.06 ▼16.59 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 53.37 ▼1.07 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 97.42 ▼4.04 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 47.45 ▲9.01 |
RG Slider /wp-admin/admin.php?page=rg-slider | 3.45 | 34.82 |
Crop Page /wp-admin/admin.php?page=rg-slider-crop-page | 3.46 | 36.68 |
Options /wp-admin/admin.php?page=rg-slider-options | 3.46 | 33.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
rg_slider_default |
widget_theysaidso_widget |
rg_slider_registered_options |
Browser metrics Passed 4 tests
An overview of browser requirements for RG Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.21 ▼1.17 | 1.80 ▲0.21 | 39.23 ▼2.66 |
Dashboard /wp-admin | 2,256 ▲56 | 4.90 ▼0.95 | 98.74 ▼2.36 | 38.29 ▼1.56 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.05 ▼0.01 | 41.86 ▲5.42 | 36.05 ▲2.53 |
Add New Post /wp-admin/post-new.php | 1,561 ▲8 | 23.49 ▼0.22 | 638.75 ▼26.38 | 62.54 ▼16.74 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.22 ▲0.07 | 101.29 ▼14.71 | 43.43 ▼8.12 |
RG Slider /wp-admin/admin.php?page=rg-slider | 873 | 2.06 | 25.91 | 31.02 |
Crop Page /wp-admin/admin.php?page=rg-slider-crop-page | 1,451 | 5.76 | 128.72 | 62.36 |
Options /wp-admin/admin.php?page=rg-slider-options | 1,347 | 2.26 | 45.89 | 32.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/rg-slider/rg-slider-helpers.php+18
unlink(wp-content/uploads/rg-slider/.): Is a directory
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rg-slider-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rg-slider-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rg-slider-crop-page
- > Notice in wp-content/plugins/rg-slider/rg-slider-croppage.php+93
Undefined variable: slide_url
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rg-slider-crop-page
- > Notice in wp-content/plugins/rg-slider/rg-slider-slide.php+400
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rg-slider/rg-slider-image.php
- > /wp-content/plugins/rg-slider/rg-slider-slide.php
- > /wp-content/plugins/rg-slider/rg-slider-listtable.php
- > /wp-content/plugins/rg-slider/rg-slider-optionspage.php
- > /wp-content/plugins/rg-slider/rg-slider-croppage.php
- > /wp-content/plugins/rg-slider/rg-slider-posttype.php
- > /wp-content/plugins/rg-slider/rg-slider-slideshow.php
- > /wp-content/plugins/rg-slider/rg-slider-helpers.php
- > /wp-content/plugins/rg-slider/rg-slider-mainpage.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rg-slider/rg-slider.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: Plugin contributors field is missing
- Tested up to: Version not formatted correctly
rg-slider/rg-slider.php Passed 13 tests
The principal PHP file in "RG Slider" v. 1.4.3 is loaded by WordPress automatically on each request
49 characters long description:
A jQuery slideshow on your website/blog made easy
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
Success! There were no dangerous files found in this plugin2,363 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 402 | 227 | 1,307 |
JavaScript | 5 | 160 | 34 | 500 |
PO File | 2 | 176 | 180 | 414 |
CSS | 3 | 6 | 4 | 83 |
Stylus | 2 | 13 | 0 | 59 |
PHP code Passed 2 tests
This is a very shot review 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.20 |
Average class complexity | 10.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 9 | 19.15% |
▷ Public methods | 47 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screen-icon.png | 3.16KB | 0.50KB | ▼ 84.28% |
assets/img/menu-icon.png | 1.41KB | 0.49KB | ▼ 65.02% |