Benchmarks
Plugin footprint 83% 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.37MB] [CPU: ▼5.59ms] Passed 4 tests
An overview of server-side resources used by Image Slider Slideshow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 38.32 ▼2.55 |
Dashboard /wp-admin | 3.68 ▲0.33 | 51.60 ▼12.68 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 49.41 ▲5.98 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 84.22 ▼13.09 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 49.94 ▲18.29 |
Upgrade To Premium /wp-admin/edit.php?post_type=img_slider&page=imgs-premium | 3.58 | 32.73 |
Galleries /wp-admin/edit.php?post_type=img_slider | 3.65 | 35.64 |
Add New /wp-admin/post-new.php?post_type=img_slider | 3.71 | 49.68 |
Server storage [IO: ▲6.37MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 136 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
rpg-slider-images-default |
img-slider-v |
img-slider-type |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
img-slider-installDate |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Image Slider Slideshow
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲268 | 16.60 ▲1.88 | 12.29 ▲10.65 | 38.98 ▼5.98 |
Dashboard /wp-admin | 2,277 ▲100 | 6.27 ▲0.69 | 126.68 ▲23.91 | 37.81 ▼6.06 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 3.81 ▲1.80 | 84.12 ▲46.75 | 33.62 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 24.55 ▲1.43 | 709.83 ▲60.87 | 37.13 ▼13.85 |
Media Library /wp-admin/upload.php | 1,579 ▲182 | 5.79 ▲1.58 | 133.70 ▲33.74 | 41.65 ▼3.01 |
Upgrade To Premium /wp-admin/edit.php?post_type=img_slider&page=imgs-premium | 1,349 | 3.60 | 63.09 | 51.51 |
Galleries /wp-admin/edit.php?post_type=img_slider | 1,156 | 3.62 | 46.02 | 44.80 |
Add New /wp-admin/post-new.php?post_type=img_slider | 4,017 | 7.29 | 202.48 | 129.36 |
Uninstaller [IO: ▲3.21MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- widget_recent-comments
- img-slider-type
- theysaidso_admin_options
- db_upgraded
- img-slider-installDate
- can_compress_scripts
- widget_theysaidso_widget
- rpg-slider-images-default
- img-slider-v
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-slider-slideshow/image-slider.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-slideshow/includes/admin/class-img-slider-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/image-slider-slideshow/includes/public/templates/image-slider.php:3
- > PHP Fatal error
require(): Failed opening required 'IMG_SLIDER_LIBRARIESclass-gamajo-template-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-slider-slideshow/includes/libraries/class-img-slider-template-loader.php on line 4
- > PHP Warning
include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/image-slider-slideshow/default_image.php on line 15
- > PHP Warning
require(IMG_SLIDER_LIBRARIESclass-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/image-slider-slideshow/includes/libraries/class-img-slider-template-loader.php on line 4
- > PHP Warning
Use of undefined constant IMG_SLIDER_IMAGES - assumed 'IMG_SLIDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-slider-slideshow/default_image.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Img_Slider_Template_Loader' not found in wp-content/plugins/image-slider-slideshow/includes/public/class-img-slider-shortcode.php:13
- > PHP Warning
Use of undefined constant IMG_SLIDER_IMAGES - assumed 'IMG_SLIDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-slider-slideshow/default_image.php on line 3
- > PHP Warning
Use of undefined constant IMG_SLIDER_LIBRARIES - assumed 'IMG_SLIDER_LIBRARIES' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-slider-slideshow/includes/libraries/class-img-slider-template-loader.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 descriptions for these screenshots #1, #2, #3, #4, #5, #6 in image-slider-slideshow/assets to your readme.txt
- Donate link: Invalid url: "#"
image-slider-slideshow/image-slider.php 85% from 13 tests
This is the main PHP file of "Image Slider Slideshow" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-slider-slideshow.php" instead of "image-slider.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected28,562 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 3,850 | 9,328 | 9,827 |
JavaScript | 15 | 605 | 305 | 6,126 |
SVG | 5 | 0 | 13 | 5,563 |
PHP | 25 | 993 | 764 | 3,273 |
Sass | 16 | 43 | 34 | 1,903 |
LESS | 16 | 41 | 51 | 1,870 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 47 | 75.81% |
▷ Protected methods | 3 | 4.84% |
▷ Private methods | 12 | 19.35% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sprites.png | 0.41KB | 0.44KB | 0.00% |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/images/dark.png | 8.35KB | 14.08KB | 0.00% |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |