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: ▼2.07MB] [CPU: ▼337.97ms] Passed 4 tests
Server-side resources used by Slideshow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.22 | 8.12 ▼41.49 |
Dashboard /wp-admin | 2.33 ▼1.09 | 7.75 ▼26.71 |
Posts /wp-admin/edit.php | 2.33 ▼1.32 | 8.54 ▼27.96 |
Add New Post /wp-admin/post-new.php | 2.32 ▼4.65 | 8.46 ▼1,255.73 |
Media Library /wp-admin/upload.php | 2.33 ▼0.97 | 7.85 ▼15.67 |
General Settings /wp-admin/edit.php?post_type=slideshow&page=general_settings | 2.33 | 8.06 |
Add New /wp-admin/post-new.php?post_type=slideshow | 2.32 | 9.18 |
Slideshows /wp-admin/edit.php?post_type=slideshow | 2.33 | 7.70 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 100 new files
Database: no new tables, 2 new options
New WordPress options |
---|
slideshow-jquery-image-gallery-plugin-version |
widget_slideshowwidget |
Browser metrics Passed 4 tests
Slideshow: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,860 ▲106 | 16.25 ▲0.20 | 5.81 ▼0.34 | 2.67 ▼0.22 |
Dashboard /wp-admin | 2,954 ▲96 | 6.95 ▲0.75 | 118.63 ▼33.75 | 161.57 ▼5.00 |
Posts /wp-admin/edit.php | 2,756 ▲65 | 3.24 ▲0.01 | 71.09 ▲7.22 | 165.68 ▲24.60 |
Add New Post /wp-admin/post-new.php | 1,712 ▲57 | 16.01 ▼4.25 | 405.02 ▼14.86 | 173.53 ▲9.79 |
Media Library /wp-admin/upload.php | 1,757 ▲59 | 5.99 ▲0.51 | 116.14 ▼19.58 | 185.31 ▼0.37 |
General Settings /wp-admin/edit.php?post_type=slideshow&page=general_settings | 2,674 | 5.03 | 74.00 | 125.79 |
Add New /wp-admin/post-new.php?post_type=slideshow | 3,866 | 6.10 | 102.62 | 145.19 |
Slideshows /wp-admin/edit.php?post_type=slideshow | 1,647 | 5.26 | 76.47 | 116.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/slideshow-jquery-image-gallery/classes/SlideshowPluginWidget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; SlideshowPluginWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 2 options
- slideshow-jquery-image-gallery-plugin-version
- widget_slideshowwidget
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
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=slideshow
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/slideshow-jquery-image-gallery/classes/SlideshowPluginWidget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; SlideshowPluginWidget has a deprecated constructor
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
Please fix the following items
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginShortcode/shortcode-inserter.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginPostType/style-settings.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginPostType/support-plugin.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginSlideshowSlide/backend_video.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginPostType/information.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/slideshow-jquery-image-gallery/classes/SlideshowPluginWidget.php:8
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginGeneralSettings/general-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slideshow-jquery-image-gallery/slideshow.php:38
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginGeneralSettings/custom-styles-tab.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginGeneralSettings/default-slideshow-settings-tab.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
slideshow-jquery-image-gallery/slideshow.php 85% from 13 tests
The principal PHP file in "Slideshow" v. 2.3.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("slideshow-jquery-image-gallery.php" instead of "slideshow.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected12,717 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 22 | 3,645 | 7,783 | 8,383 |
PHP | 31 | 881 | 969 | 3,440 |
CSS | 6 | 92 | 0 | 644 |
SVG | 4 | 0 | 0 | 236 |
JavaScript | 2 | 1 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 26.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 70 | 93.33% |
▷ Public methods | 63 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 16.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/SlideshowPluginPostType/adminIcon32.png | 0.41KB | 0.19KB | ▼ 53.85% |
images/SlideshowPlugin/light-arrows.png | 3.65KB | 0.87KB | ▼ 76.16% |
images/SlideshowPluginPostType/adminIcon.png | 2.80KB | 0.13KB | ▼ 95.46% |
images/SlideshowPlugin/dark-arrows.png | 3.67KB | 0.42KB | ▼ 88.63% |
images/SlideshowPlugin/light-controlpanel.png | 2.90KB | 0.23KB | ▼ 92.08% |