Benchmarks
Plugin footprint 83% 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.10MB] [CPU: ▲1.87ms] Passed 4 tests
This is a short check of server-side resources used by Polaroid Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 48.83 ▲10.98 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.60 ▼4.96 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.46 ▲0.09 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 96.42 ▲7.67 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.16 ▲4.68 |
Polaroid Gallery /wp-admin/options-general.php?page=polaroid_gallery_options | 3.27 | 32.28 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Polaroid Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲176 | 13.65 ▼0.73 | 12.24 ▲10.08 | 42.22 ▲0.23 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▼0.05 | 93.99 ▼9.68 | 42.20 ▼1.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 39.22 ▲4.09 | 33.90 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.23 ▼0.05 | 651.09 ▲13.68 | 55.12 ▲5.67 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▼0.02 | 94.75 ▼4.16 | 43.59 ▲0.15 |
Polaroid Gallery /wp-admin/options-general.php?page=polaroid_gallery_options | 1,089 | 1.70 | 26.19 | 29.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=polaroid_gallery_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=polaroid_gallery_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/polaroid-gallery/polaroid_gallery.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots do not have images: #1 (Choose between Medium, Large or Full size images for fullscreen overlay and configure rest of the options as desired.), #2 (Change your thumbnail size and optionally use Regenerate Thumbnails plugin to regenerate all thumbnails.), #3 (Click "Add an Image" in post or page and upload your pictures.), #4 (Edit title and caption for the images and then click "Save all changes".), #5 (Choose your order and Gallery columns and then click "Insert gallery".), #6 (Edit page.), #7 (Post page.), #8 (Fullscreen image.)
polaroid-gallery/polaroid_gallery.php 92% from 13 tests
"Polaroid Gallery" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("polaroid-gallery.php" instead of "polaroid_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,281 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 205 | 686 | 986 |
SVG | 1 | 0 | 0 | 526 |
CSS | 7 | 50 | 33 | 485 |
JavaScript | 5 | 19 | 104 | 200 |
PO File | 1 | 36 | 50 | 84 |
PHP code Passed 2 tests
A brief analysis 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.48 |
Average class complexity | 122.00 |
▷ Minimum class complexity | 122.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 33 | |
▷ Static methods | 9 | 27.27% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
26 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 19.55KB | 19.72KB | 0.00% |
screenshot-6.png | 26.25KB | 26.54KB | 0.00% |
images/fancybox/fancy_shadow_w.png | 0.10KB | 0.18KB | 0.00% |
images/fancybox/fancy_nav_right.png | 1.42KB | 1.66KB | 0.00% |
images/fancybox/fancy_shadow_ne.png | 0.34KB | 0.48KB | 0.00% |