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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.79ms] Passed 4 tests
Server-side resources used by Random image gallery with pretty photo zoom
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.02 ▼0.47 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.09 ▼15.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.26 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.49 ▼1.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.68 ▼2.78 |
R I G W PP Z /wp-admin/options-general.php?page=random-image-gallery-with-pretty-photo-zoom | 3.21 | 31.49 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
rigwppz_dir2 |
widget_recent-posts |
rigwppz_dir |
theysaidso_admin_options |
db_upgraded |
rigwppz_dir3 |
rigwppz_dir4 |
rigwppz_dir5 |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Random image gallery with pretty photo zoom
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲144 | 13.42 ▼0.95 | 8.46 ▲5.93 | 41.65 ▼18.59 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.02 | 91.10 ▼9.40 | 41.05 ▼0.54 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▼0.05 | 38.87 ▼0.09 | 36.15 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.11 ▲0.11 | 631.34 ▼61.79 | 53.16 ▼4.45 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.25 ▲0.02 | 96.41 ▼15.60 | 42.05 ▼9.91 |
R I G W PP Z /wp-admin/options-general.php?page=random-image-gallery-with-pretty-photo-zoom | 882 | 1.99 | 22.56 | 29.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/random-image-gallery-with-pretty-photo-zoom.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined index: MAXWIDTH in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 11
- > PHP Warning
Division by zero in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function notfound() in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php:83
- > PHP Notice
getimagesize(): Read error! in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/select-random-image.php:3
- > PHP Notice
Undefined index: DIR in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 7
- > PHP Warning
Division by zero in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 29
- > PHP Notice
getimagesize(): read of 8192 bytes failed with errno=21 Is a directory in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 23
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 25
- > PHP Notice
Undefined index: IMGNAME in wp-content/plugins/random-image-gallery-with-pretty-photo-zoom/crop-random-image.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: random image, pretty photo, gallery
random-image-gallery-with-pretty-photo-zoom/random-image-gallery-with-pretty-photo-zoom.php 85% from 13 tests
The primary PHP file in "Random image gallery with pretty photo zoom" version 9.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,297 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 183 | 95 | 633 |
PHP | 4 | 74 | 45 | 352 |
CSS | 1 | 0 | 0 | 170 |
PO File | 2 | 52 | 76 | 142 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
images/prettyPhoto/light_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/facebook/contentPatternTop.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/prettyPhoto/facebook/btnPrevious.png | 0.81KB | 0.58KB | ▼ 27.90% |
images/prettyPhoto/dark_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |