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: ▼0.81MB] [CPU: ▼36.16ms] Passed 4 tests
An overview of server-side resources used by WP Simple Galleries
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.53 ▼1.34 |
Dashboard /wp-admin | 3.15 ▼0.20 | 24.00 ▼37.50 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 23.91 ▼27.32 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 25.49 ▼75.81 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 27.78 ▼4.00 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
wpsimplegallery |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
wpsg_optionsframework |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Simple Galleries
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,117 ▲382 | 14.02 ▲0.67 | 8.16 ▲3.79 | 44.87 ▲1.26 |
Dashboard /wp-admin | 2,259 ▲67 | 4.95 ▲0.04 | 115.77 ▲6.20 | 90.53 ▲45.21 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.13 ▲0.07 | 40.53 ▲0.77 | 32.90 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,688 ▲164 | 22.33 ▼1.05 | 645.51 ▲21.57 | 61.13 ▲7.32 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.34 ▲0.15 | 98.30 ▼0.25 | 66.83 ▲21.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wp-simple-galleries/wp-simple-gallery.php+75
Invalid argument supplied for foreach()
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- wpsg_optionsframework
- wpsimplegallery
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-simple-galleries/admin/options-framework.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-simple-galleries/admin/options-sanitize.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-simple-galleries/wp-simple-gallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-simple-galleries/admin/options-medialibrary-uploader.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This is an example of what is displayed on a post.), #2 (This is an example of editting a post.)
wp-simple-galleries/wp-simple-gallery.php 92% from 13 tests
The primary PHP file in "WP Simple Galleries" version 1.34 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-simple-galleries.php" instead of "wp-simple-gallery.php")
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
Success! There were no dangerous files found in this plugin4,093 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 430 | 422 | 2,161 |
JavaScript | 6 | 65 | 53 | 717 |
CSS | 9 | 18 | 68 | 709 |
PO File | 4 | 164 | 226 | 506 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 122.50 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.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 | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 18 | 34.62% |
▷ Protected methods | 30 | 57.69% |
▷ Private methods | 4 | 7.69% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 55 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
46 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/colorpicker/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
colorbox/themes/theme4/images/ie6/borderTopCenter.png | 0.15KB | 0.19KB | 0.00% |
colorbox/themes/theme1/images/ie6/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |
colorbox/themes/theme1/images/ie6/borderTopRight.png | 0.21KB | 0.20KB | ▼ 2.34% |
colorbox/themes/theme1/images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |