Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.66MB] [CPU: ▼4.95ms] Passed 4 tests
Server-side resources used by Picture Gallery - Frontend Image Uploads, AJAX Photo List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 48.07 ▲1.85 |
Dashboard /wp-admin | 3.97 ▲0.62 | 53.71 ▼10.70 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 59.75 ▲4.78 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 103.19 ▼10.35 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 39.49 ▼0.61 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=picture | 3.89 | 44.31 |
Documentation /wp-admin/admin.php?page=picture-gallery-docs | 3.84 | 36.55 |
Upload /wp-admin/admin.php?page=picture-gallery-upload | 3.84 | 35.73 |
New Picture /wp-admin/post-new.php?post_type=picture | 4.11 | 63.63 |
Galleries /wp-admin/edit-tags.php?taxonomy=gallery&post_type=picture | 3.89 | 45.67 |
All Pictures /wp-admin/edit.php?post_type=picture | 3.95 | 45.24 |
Manage /wp-admin/admin.php?page=picture-gallery-manage | 3.84 | 37.23 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=picture | 3.89 | 43.06 |
Options /wp-admin/admin.php?page=picture-gallery | 4.00 | 153.94 |
Import /wp-admin/admin.php?page=picture-gallery-import | 3.85 | 34.00 |
Server storage [IO: ▲4.04MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
VWpictureGalleryOptions |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
category_children |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Picture Gallery - Frontend Image Uploads, AJAX Photo List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲299 | 13.84 ▼0.57 | 10.15 ▲8.22 | 46.46 ▲2.87 |
Dashboard /wp-admin | 2,331 ▲151 | 5.63 ▲0.01 | 85.14 ▼5.69 | 49.41 ▲5.58 |
Posts /wp-admin/edit.php | 2,233 ▲130 | 1.97 ▼0.02 | 41.05 ▲3.73 | 42.84 ▲7.24 |
Add New Post /wp-admin/post-new.php | 1,639 ▲113 | 23.09 ▼0.27 | 607.93 ▼50.15 | 56.20 ▼9.83 |
Media Library /wp-admin/upload.php | 1,530 ▲127 | 4.25 ▲0.06 | 102.69 ▼0.22 | 46.97 ▼0.15 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=picture | 1,588 | 2.14 | 32.45 | 47.33 |
Documentation /wp-admin/admin.php?page=picture-gallery-docs | 1,025 | 2.13 | 25.78 | 36.58 |
Upload /wp-admin/admin.php?page=picture-gallery-upload | 1,352 | 2.53 | 33.37 | 117.94 |
New Picture /wp-admin/post-new.php?post_type=picture | 3,023 | 7.86 | 182.68 | 80.24 |
Galleries /wp-admin/edit-tags.php?taxonomy=gallery&post_type=picture | 1,404 | 2.26 | 27.86 | 35.08 |
All Pictures /wp-admin/edit.php?post_type=picture | 1,310 | 1.93 | 31.22 | 34.90 |
Manage /wp-admin/admin.php?page=picture-gallery-manage | 899 | 2.01 | 26.57 | 30.66 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=picture | 1,449 | 2.13 | 29.26 | 33.80 |
Options /wp-admin/admin.php?page=picture-gallery | 1,078 | 2.00 | 23.18 | 33.84 |
Import /wp-admin/admin.php?page=picture-gallery-import | 975 | 2.17 | 22.79 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- VWpictureGalleryOptions
- widget_theysaidso_widget
- category_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=picture
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=picture-gallery-import
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=picture-gallery-import
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=picture-gallery-upload
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/picture-gallery/template-picture.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/picture-gallery/taxonomy-gallery.php:1
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (AJAX picture listings (updates live as pictures are added)), #2 (Rate Star Review - picture reviews integration)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
picture-gallery/picture-gallery.php 92% from 13 tests
"Picture Gallery - Frontend Image Uploads, AJAX Photo List" version 1.5.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 631 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,555 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 2,880 |
PHP | 5 | 951 | 2,171 | 1,244 |
PO File | 1 | 120 | 123 | 347 |
JavaScript | 2 | 18 | 12 | 83 |
CSS | 1 | 0 | 10 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 171.67 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 350.00 |
Average method complexity | 9.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 58 | 96.67% |
▷ Public methods | 60 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.47MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 363.25KB | 108.22KB | ▼ 70.21% |
scripts/semantic/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
screenshot-2.png | 83.56KB | 27.18KB | ▼ 67.47% |
no_video.png | 7.30KB | 3.58KB | ▼ 50.92% |