Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲1.90ms] Passed 4 tests
Server-side resources used by Responsive Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.15 ▲4.07 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.72 ▲4.26 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.19 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 93.03 ▲4.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.77 ▲2.10 |
Responsive Image Galleries /wp-admin/edit.php?post_type=responsive_gallery | 3.31 | 33.48 |
Add New /wp-admin/post-new.php?post_type=responsive_gallery | 3.32 | 40.56 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Image Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.68 ▼0.70 | 4.44 ▲2.70 | 39.17 ▼3.37 |
Dashboard /wp-admin | 2,233 ▲48 | 4.82 ▼0.24 | 107.78 ▼8.50 | 42.10 ▼2.13 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.01 | 40.65 ▲1.59 | 35.93 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.11 ▼0.01 | 641.86 ▲21.55 | 50.20 ▲7.45 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.16 ▼0.16 | 93.33 ▼4.53 | 41.77 ▼1.93 |
Responsive Image Galleries /wp-admin/edit.php?post_type=responsive_gallery | 1,086 | 1.93 | 33.73 | 30.24 |
Add New /wp-admin/post-new.php?post_type=responsive_gallery | 2,229 | 4.47 | 103.08 | 42.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/responsive-image-gallery/index.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-image-gallery/ResponsiveImageGalleryAdmin.php:5
- > PHP Fatal error
Uncaught Error: Class 'Utility' not found in wp-content/plugins/responsive-image-gallery/ResponsiveImageGalleryAdmin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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: Please reduce the number of tags, currently 27 tag instead of maximum 10
responsive-image-gallery/image-gallery.php 92% from 13 tests
The main PHP script in "Responsive Image Gallery" version 4.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-image-gallery.php" instead of "image-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,899 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 216 | 159 | 944 |
PHP | 4 | 109 | 32 | 494 |
CSS | 4 | 75 | 34 | 416 |
JSON | 1 | 0 | 0 | 37 |
Markdown | 1 | 9 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admins/writing.png | 0.83KB | 0.85KB | 0.00% |
admins/remove.png | 1.39KB | 1.28KB | ▼ 7.74% |
tinymce/icon.png | 0.11KB | 0.10KB | ▼ 2.73% |