Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/simple-responsive-slider/simple-responsive-slider-admin.php+58
Undefined variable: wp_version
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.94ms] Passed 4 tests
This is a short check of server-side resources used by Simple Responsive Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 21.69 ▼17.59 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.58 ▼2.45 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 47.40 ▲3.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.24 ▲8.73 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.74 ▼2.83 |
Simple Responsive Slider /wp-admin/themes.php?page=simple-responsive-slider | 3.26 | 33.47 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_simpleresponsiveslider_widget |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Responsive Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 14.04 ▼0.34 | 5.46 ▲3.70 | 43.00 ▼5.91 |
Dashboard /wp-admin | 2,207 ▲19 | 5.95 ▲0.15 | 95.70 ▼20.15 | 38.41 ▼7.91 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.01 ▼0.02 | 39.31 ▲5.69 | 33.82 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,517 ▼4 | 17.58 ▼3.53 | 630.07 ▼70.57 | 47.86 ▼8.74 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.15 ▼0.07 | 93.78 ▼8.17 | 41.54 ▼3.95 |
Simple Responsive Slider /wp-admin/themes.php?page=simple-responsive-slider | 1,018 | 3.41 | 56.24 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_simpleresponsiveslider_widget
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/themes.php?page=simple-responsive-slider
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=simple-responsive-slider
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/simple-responsive-slider/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-responsive-slider/classes/widget.php:9
- > PHP Fatal error
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Slides edit.), #2 (Image crop.), #3 (Slider settings.), #4 (Simple Responsive Slider in action!)
simple-responsive-slider/simple-responsive-slider.php 92% from 13 tests
The entry point to "Simple Responsive Slider" version 0.2.2.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 409 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,656 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 169 | 284 | 763 |
JavaScript | 3 | 59 | 90 | 350 |
CSS | 3 | 25 | 3 | 297 |
PO File | 2 | 102 | 623 | 246 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 3 | 11.11% |
▷ Private methods | 1 | 3.70% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.69MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 65.46KB | 25.05KB | ▼ 61.73% |
assets/images/sprite.png | 1.98KB | 0.97KB | ▼ 50.84% |
screenshot-2.png | 793.62KB | 215.83KB | ▼ 72.80% |
screenshot-4.png | 788.77KB | 245.66KB | ▼ 68.85% |
assets/css/images/bg.png | 49.85KB | 32.04KB | ▼ 35.72% |