Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.35ms] Passed 4 tests
Analyzing server-side resources used by Snazzy Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.26 ▼23.55 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.41 ▼8.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.43 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.44 ▲3.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 49.46 ▲11.86 |
Edit Recent Slider /wp-admin/admin.php?page=snazzy-slider-edit | 3.47 | 42.06 |
Add / Edit Sliders /wp-admin/admin.php?page=snazzy-slider | 3.27 | 34.51 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
snzysldr_options |
Browser metrics Passed 4 tests
Checking browser requirements for Snazzy Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.34 ▼0.37 | 1.62 ▼0.13 | 42.77 ▼0.67 |
Dashboard /wp-admin | 2,238 ▲58 | 5.59 ▼0.07 | 91.25 ▼8.50 | 40.65 ▼0.77 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 1.95 ▼0.02 | 39.78 ▼0.30 | 32.42 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.00 ▼0.07 | 671.79 ▲74.38 | 59.00 ▲13.05 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.16 ▼0.05 | 114.17 ▲6.17 | 50.01 ▲6.81 |
Edit Recent Slider /wp-admin/admin.php?page=snazzy-slider-edit | 1,742 | 4.34 | 83.00 | 40.20 |
Add / Edit Sliders /wp-admin/admin.php?page=snazzy-slider | 931 | 2.05 | 25.20 | 26.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/snazzy-slider/admin/partials/snzysldr-submenu-content.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/snzysldr-admin.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/public/snzysldr-public.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-submenu-data-processing.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-submenu-form-processing.php:144
- > PHP Notice
Undefined variable: slider_name in wp-content/plugins/snazzy-slider/public/partials/snzysldr-public-content.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snazzy-slider/admin/includes/snzysldr-admin-data-processing.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snazzy-slider/public/partials/snzysldr-public-content.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/snazzy-slider/admin/partials/snzysldr-admin-content.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/snazzy-slider/snazzy-slider.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
snazzy-slider/snazzy-slider.php Passed 13 tests
This is the main PHP file of "Snazzy Slider" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Elegant, responsive, accessible sliders for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,783 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 448 | 1,112 | 2,384 |
CSS | 4 | 130 | 12 | 1,281 |
PHP | 11 | 343 | 86 | 1,089 |
SVG | 9 | 0 | 2 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/size.png | 0.31KB | 0.23KB | ▼ 24.92% |
admin/img/upload.png | 0.36KB | 0.28KB | ▼ 22.22% |
admin/img/plus.png | 1.06KB | 0.45KB | ▼ 57.34% |
admin/img/text_large.png | 1.53KB | 1.07KB | ▼ 30.33% |
admin/img/check.png | 0.32KB | 0.23KB | ▼ 28.40% |