Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼150.77ms] Passed 4 tests
This is a short check of server-side resources used by Simplicity - WordPress gallery plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 33.39 ▲8.91 |
Dashboard /wp-admin | 3.45 ▲0.39 | 45.64 ▼1.94 |
Posts /wp-admin/edit.php | 3.50 ▲0.39 | 46.56 ▲0.96 |
Add New Post /wp-admin/post-new.php | 4.97 ▼0.46 | 57.46 ▼603.04 |
Media Library /wp-admin/upload.php | 3.33 ▲0.33 | 33.12 ▲0.96 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 144 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simplicity - WordPress gallery plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.97 ▲0.31 | 10.67 ▲1.25 | 47.11 ▼3.13 |
Dashboard /wp-admin | 2,992 ▲58 | 6.08 ▲0.12 | 136.90 ▼6.32 | 109.95 ▼8.05 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.84 ▲0.13 | 70.21 ▲3.55 | 90.83 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,750 ▲250 | 18.53 ▼0.02 | 360.98 ▼12.90 | 108.78 ▲1.14 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.02 ▼0.03 | 151.65 ▲4.31 | 121.17 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simplicity-gallery/UberGallery/resources/templates/colorboxScripts.php
- > /wp-content/plugins/simplicity-gallery/UberGallery/index.php
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined index: cache_dir in wp-content/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 148
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-naked/index.php on line 9
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-orange/index.php on line 9
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-blue/index.php on line 9
- > PHP Notice
Undefined index: cache_dir in wp-content/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 149
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-orange/index.php on line 8
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-responsive/index.php on line 7
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-responsive/index.php on line 9
- > PHP Warning
Use of undefined constant THEMEPATH - assumed 'THEMEPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplicity-gallery/UberGallery/resources/themes/uber-naked/index.php on line 6
- > PHP Notice
Undefined index: cache_dir in wp-content/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 140
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== simplicity-gallery ===
)
simplicity-gallery/simplicity.php 85% from 13 tests
The entry point to "Simplicity - WordPress gallery plugin" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simplicity-gallery.php" instead of "simplicity.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
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
No dangerous file extensions were detected4,660 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 705 | 1,263 | 2,447 |
CSS | 25 | 195 | 229 | 1,168 |
PO File | 6 | 142 | 186 | 460 |
JavaScript | 15 | 61 | 125 | 432 |
Markdown | 1 | 58 | 0 | 127 |
INI | 2 | 28 | 16 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 64 | 60.38% |
▷ Public methods | 92 | 86.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 13.21% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 compressed PNG files occupy 0.83MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
meta-boxes/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
meta-boxes/img/jqueryui/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
UberGallery/resources/colorbox/1/images/ie6/borderTopRight.png | 0.21KB | 0.20KB | ▼ 2.34% |
meta-boxes/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
UberGallery/resources/colorbox/5/images/controls.png | 1.99KB | 2.04KB | 0.00% |