Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.49ms] Passed 4 tests
This is a short check of server-side resources used by Image Gallery - Grid Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.09 ▼5.41 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.65 ▼5.36 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.80 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.23 ▲7.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.00 ▲0.08 |
Server storage [IO: ▲5.32MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 173 new files
Database: 8 new tables, 7 new options
New tables |
---|
wp_rich_web_gallery_font_family |
wp_rich_web_gallery_image_instal |
wp_rich_web_gallery_effects_data_2 |
wp_rich_web_questions |
wp_rich_web_gallery_effects_data_1 |
wp_rich_web_gallery_image_manager |
wp_rich_web_gallery_id |
wp_rich_web_gallery_effects_data |
New WordPress options |
---|
db_upgraded |
widget_rich_web_gallery_image |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Image Gallery - Grid Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲310 | 15.84 ▲1.45 | 11.29 ▲9.58 | 37.51 ▼11.94 |
Dashboard /wp-admin | 2,273 ▲82 | 6.04 ▲1.00 | 129.97 ▲21.71 | 86.08 ▲43.20 |
Posts /wp-admin/edit.php | 2,155 ▲63 | 3.23 ▲1.23 | 58.47 ▲17.67 | 34.80 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,727 ▲189 | 25.29 ▲2.15 | 574.78 ▼104.96 | 27.33 ▼33.56 |
Media Library /wp-admin/upload.php | 1,455 ▲70 | 5.04 ▲0.83 | 123.94 ▲24.19 | 83.72 ▲40.46 |
Gallery Manager /wp-admin/admin.php?page=Rich-Web Gallery Admin?Rich_Web_IGallery_Nonce=b344d5573d | 28 | 0.44 | 0.07 | 3.74 |
Gallery Options /wp-admin/admin.php?page=Rich-Web Gallery General?Rich_Web_IGallery_Nonce=b344d5573d | 28 | 0.44 | 0.07 | 3.30 |
Our Products /wp-admin/admin.php?page=Rich-Web Gallery Products | 1,010 | 2.89 | 42.36 | 48.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 8 tables in the database
- wp_rich_web_gallery_font_family
- wp_rich_web_gallery_image_manager
- wp_rich_web_gallery_effects_data
- wp_rich_web_gallery_effects_data_1
- wp_rich_web_gallery_image_instal
- wp_rich_web_gallery_effects_data_2
- wp_rich_web_gallery_id
- wp_rich_web_questions
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_rich_web_gallery_image
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_sql() in wp-content/plugins/gallery-image-gallery-photo/Rich-Web-Gallery-Image-Install.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-image-gallery-photo/Rich-Web-Gallery-Image-Ajax.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gallery-image-gallery-photo/Rich-Web-Gallery-Image-Widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-image-gallery-photo/Gallery.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gallery-image-gallery-photo/Rich-Web-Gallery-Image-Shortcode.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=Rich-Web Gallery Admin?Rich_Web_IGallery_Nonce=b344d5573d
- > Network (severe)
wp-admin/admin.php?page=Rich-Web%20Gallery%20Admin?Rich_Web_IGallery_Nonce=b344d5573d - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=Rich-Web Gallery General?Rich_Web_IGallery_Nonce=b344d5573d
- > Network (severe)
wp-admin/admin.php?page=Rich-Web%20Gallery%20General?Rich_Web_IGallery_Nonce=b344d5573d - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% 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
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #6, #7, #8, #9 in gallery-image-gallery-photo/assets to your readme.txt
- Screenshots: These screenshots require images: #13 (Lighbox), #14 (Justified / Translate Effect), #15 (Justified Image / Scale Effect), #16 (Justified Gallery / Lighbox 2)
gallery-image-gallery-photo/Gallery.php 85% from 13 tests
The primary PHP file in "Image Gallery - Grid Gallery" version 1.1.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-image-gallery-photo.php" instead of "Gallery.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected15,982 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 120 | 128 | 9,033 |
CSS | 32 | 1,077 | 49 | 4,752 |
JavaScript | 67 | 64 | 277 | 1,284 |
SVG | 4 | 0 | 1 | 911 |
Markdown | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 273)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 274.00 |
▷ Minimum class complexity | 274.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 92.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 273.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.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
13 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/Products/Forms.png | 3.40KB | 3.38KB | ▼ 0.66% |
Images/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
Images/Products/Coming-Soon.png | 5.13KB | 4.25KB | ▼ 17.20% |
Images/Products/Timeline.png | 3.70KB | 2.72KB | ▼ 26.45% |
Images/Products/Slider-Video.png | 3.09KB | 2.93KB | ▼ 5.43% |