Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼30.67ms] Passed 4 tests
A check of server-side resources used by Simply Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 45.21 ▲6.24 |
Dashboard /wp-admin | 3.30 ▼0.01 | 25.27 ▼23.87 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 27.72 ▼17.19 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 27.84 ▼72.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 26.06 ▼9.47 |
SimplySlider /wp-admin/options-general.php?page=simplyslide-options | 3.30 | 26.81 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
simplyslide_page |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simply Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲336 | 15.95 ▲1.36 | 6.47 ▲4.78 | 41.16 ▼1.95 |
Dashboard /wp-admin | 2,375 ▲190 | 6.78 ▲1.65 | 119.77 ▲12.21 | 37.44 ▼5.73 |
Posts /wp-admin/edit.php | 2,281 ▲195 | 3.69 ▲1.69 | 58.23 ▲21.83 | 35.52 ▲4.93 |
Add New Post /wp-admin/post-new.php | 1,695 ▲162 | 22.72 ▼0.64 | 603.40 ▼76.79 | 32.23 ▼26.09 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.43 ▲0.27 | 82.27 ▼27.56 | 44.14 ▼2.52 |
SimplySlider /wp-admin/options-general.php?page=simplyslide-options | 2,112 | 4.09 | 71.37 | 32.07 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/simply-slider/class.simplyslide.php+623
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- simplyslide_page
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simplyslide-options
- > Deprecated in wp-content/plugins/simply-slider/class.simplyslide.php+623
Function create_function() is deprecated
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simplyslide-options
- > Notice in wp-content/plugins/simply-slider/fields/image.php+24
Undefined variable: class
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
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simply-slider/class.simplyslide.php on line 854
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simply-slider/class.simplyslide.php:857
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simply-slider/simplyslide.php:11
- > PHP Fatal error
Uncaught Error: Class 'SimplySlide_Settings_Field' not found in wp-content/plugins/simply-slider/fields/text.php:6
- > PHP Fatal error
Uncaught Error: Class 'SimplySlide_Settings_Field' not found in wp-content/plugins/simply-slider/fields/image.php:5
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (This is the Simply Slider Options Page.) image missing
simply-slider/simplyslide.php 92% from 13 tests
The principal PHP file in "Simply Slider" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simply-slider.php" instead of "simplyslide.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,288 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 8 | 425 | 1,143 |
JavaScript | 4 | 8 | 173 | 661 |
CSS | 1 | 3 | 18 | 484 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 1 | 1.35% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.35% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrowdown64.png | 1.46KB | 0.69KB | ▼ 53.11% |
images/sprite.png | 57.14KB | 23.19KB | ▼ 59.41% |
screenshot.png | 234.47KB | 103.77KB | ▼ 55.74% |