Benchmarks
Plugin footprint 40% 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
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/simple-wp-gallery-pro/sp-gallery.php+33
Only variables should be passed by reference
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.78ms] Passed 4 tests
A check of server-side resources used by Simple Wordpress Gallery PRO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.17 ▼41.14 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.34 ▼44.46 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 5.80 ▼43.09 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.62 ▼94.41 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.96 ▼27.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Wordpress Gallery PRO: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.14 ▼0.26 | 1.89 ▲0.20 | 43.61 ▼0.12 |
Dashboard /wp-admin | 2,198 ▲18 | 5.49 ▼0.08 | 88.51 ▼5.57 | 37.56 ▼2.88 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.98 ▼0.04 | 33.28 ▼8.22 | 35.07 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.37 ▲0.17 | 689.83 ▼18.65 | 56.34 ▼0.76 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.22 ▲0.08 | 100.31 ▼6.33 | 43.33 ▼5.19 |
Simple Wordpress Gallery /wp-admin/sp-gallery.php | 26 | 0.42 | 0.10 | 14.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/simple-wp-gallery-pro/sp-gallery.php+33
Only variables should be passed by reference
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/simple-wp-gallery-pro/views/image-options.php:4
- > PHP Notice
Undefined variable: inGallery in wp-content/plugins/simple-wp-gallery-pro/views/image-options.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-gallery-pro/sp-gallery.php:56
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/simple-wp-gallery-pro/views/image-options.php on line 4
- > PHP Notice
Undefined variable: post in wp-content/plugins/simple-wp-gallery-pro/views/image-options.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/sp-gallery.php
- > Network (severe)
wp-admin/sp-gallery.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post, gallery, images, lightbox
simple-wp-gallery-pro/sp-gallery.php 92% from 13 tests
"Simple Wordpress Gallery PRO" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-wp-gallery-pro.php" instead of "sp-gallery.php")
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
There were no executable files found in this plugin1,203 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 106 | 94 | 813 |
PHP | 3 | 60 | 21 | 241 |
CSS | 4 | 0 | 2 | 149 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 30.77% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/gallery-nav-arrows.png | 0.59KB | 0.53KB | ▼ 10.61% |