Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.22MB] [CPU: ▼48.82ms] Passed 4 tests
An overview of server-side resources used by Post gallery slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 21.30 ▼21.25 |
Dashboard /wp-admin | 2.80 ▼0.54 | 15.76 ▼45.45 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 15.96 ▼36.11 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 14.26 ▼92.48 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 14.77 ▼17.78 |
Post Gallery Slider /wp-admin/options-general.php?page=post_gallery_slider | 2.80 | 15.63 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
post_gallery_slider |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Post gallery slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.03 | 1.84 ▼0.29 | 44.62 ▲3.58 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▲0.02 | 88.84 ▼6.75 | 41.03 ▼3.00 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 34.96 ▼7.12 | 36.79 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.21 ▲0.24 | 668.63 ▲1.38 | 51.29 ▼11.20 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.26 ▲0.10 | 106.23 ▼0.67 | 46.77 ▲0.03 |
Post Gallery Slider /wp-admin/options-general.php?page=post_gallery_slider | 973 | 2.02 | 25.72 | 29.19 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/post-gallery-slider/post-gallery-slider.php+44
Undefined index: restore
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- post_gallery_slider
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=post_gallery_slider
- > Notice in wp-content/plugins/post-gallery-slider/post-gallery-slider.php+44
Undefined index: restore
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 fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/post-gallery-slider/templates/thumbs.php
- > /wp-content/plugins/post-gallery-slider/templates/footer.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: height in wp-content/plugins/post-gallery-slider/templates/gallery.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/post-gallery-slider/templates/thumbs.php on line 3
- > PHP Notice
Undefined variable: width in wp-content/plugins/post-gallery-slider/templates/gallery.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_html_class() in wp-content/plugins/post-gallery-slider/templates/slider.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/post-gallery-slider/templates/options-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/post-gallery-slider/templates/gallery.php:3
- > PHP Notice
Undefined variable: attachments in wp-content/plugins/post-gallery-slider/templates/thumbs.php on line 3
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gallery thumbnails, slider, post gallery, slideshow
post-gallery-slider/post-gallery-slider.php Passed 13 tests
The main PHP script in "Post gallery slider" version 1.1.1 is automatically included on every request by WordPress
78 characters long description:
Post gallery slider, with thumbnails and with nice animation, and auto height.
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
Good job! No executable or dangerous file extensions detected2,633 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 356 | 141 | 2,338 |
PHP | 6 | 30 | 16 | 286 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 1 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin