Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.67MB] [CPU: ▼174.95ms] Passed 4 tests
Analyzing server-side resources used by DS Simple Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.17 | 32.94 ▼0.65 |
Dashboard /wp-admin | 2.98 ▼0.07 | 22.49 ▼23.69 |
Posts /wp-admin/edit.php | 2.98 ▼0.13 | 21.46 ▼19.15 |
Add New Post /wp-admin/post-new.php | 2.98 ▼2.45 | 20.60 ▼648.31 |
Media Library /wp-admin/upload.php | 2.98 ▼0.02 | 21.93 ▼8.63 |
All Galleries /wp-admin/edit.php?post_type=gallery | 2.98 | 23.25 |
Add New Gallery /wp-admin/post-new.php?post_type=gallery | 2.98 | 24.08 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 86 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wrsimplegallery |
wrsg_optionsframework |
Browser metrics Passed 4 tests
A check of browser resources used by DS Simple Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,149 ▲553 | 16.41 ▲0.69 | 14.95 ▲3.21 | 45.14 ▼7.66 |
Dashboard /wp-admin | 3,123 ▲192 | 6.20 ▲0.15 | 170.74 ▲17.54 | 106.25 ▼6.29 |
Posts /wp-admin/edit.php | 2,898 ▲159 | 2.76 ▲0.04 | 70.76 ▼0.50 | 84.24 ▼12.33 |
Add New Post /wp-admin/post-new.php | 1,570 ▲70 | 18.36 ▼0.45 | 351.86 ▼44.01 | 122.66 ▲7.54 |
Media Library /wp-admin/upload.php | 1,966 ▲159 | 5.13 ▲0.11 | 160.02 ▲3.71 | 117.13 ▲8.92 |
All Galleries /wp-admin/edit.php?post_type=gallery | 1,565 | 2.68 | 74.76 | 71.37 |
Add New Gallery /wp-admin/post-new.php?post_type=gallery | 2,085 | 3.77 | 93.12 | 94.48 |
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/ds-simple-gallery/wp-gallery.php+121
Invalid argument supplied for foreach()
- This plugin did not uninstall successfully, leaving 2 options in the database
- wrsimplegallery
- wrsg_optionsframework
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gallery
- > Warning in wp-content/plugins/ds-simple-gallery/wp-gallery.php+121
Invalid argument supplied for foreach()
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gallery
- > User notice in wp-includes/functions.php+5663
register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ds-simple-gallery/admin/options-framework.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ds-simple-gallery/wp-gallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ds-simple-gallery/admin/options-sanitize.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ds-simple-gallery/admin/options-medialibrary-uploader.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
These attributes need your attention:
- Donate link: Invalid url: ""
ds-simple-gallery/wp-gallery.php 92% from 13 tests
The principal PHP file in "DS Simple Gallery" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ds-simple-gallery.php" instead of "wp-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,213 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 322 | 319 | 1,169 |
CSS | 13 | 47 | 138 | 767 |
JavaScript | 6 | 65 | 71 | 277 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
colorbox/themes/theme8/images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |
colorbox/themes/theme7/images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |
(invalid) colorbox/themes/theme7/style.png | 13.38KB | 0.00KB | ▼ 100.00% |
colorbox/themes/theme1/images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |
colorbox/themes/theme8/images/border.png | 0.20KB | 0.20KB | 0.00% |