Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/responsive-media-gallery/responsive-media-gallery.php+259
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.02ms] Passed 4 tests
Analyzing server-side resources used by Responsive Media Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.04 ▲2.32 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.47 ▼2.94 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 49.41 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 96.84 ▲1.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.52 ▲3.14 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
igr_options |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Responsive Media Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.71 ▼0.60 | 6.55 ▲4.71 | 36.67 ▼14.20 |
Dashboard /wp-admin | 2,206 ▲18 | 5.87 ▲0.98 | 107.74 ▲6.97 | 39.42 ▲0.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 40.63 ▲2.14 | 34.53 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.06 ▼0.25 | 648.17 ▼31.91 | 54.50 ▼2.62 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.01 | 94.14 ▼9.31 | 39.49 ▼5.48 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-media-gallery/responsive-media-gallery.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There were no tags found
- Donate link: Please fix this invalid url: ""
responsive-media-gallery/responsive-media-gallery.php Passed 13 tests
The main PHP script in "Responsive Media Gallery" version 1.0 is automatically included on every request by WordPress
100 characters long description:
Replace the default Wordpress gallery with a responsive and touch friendly Galleria based slideshow.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,259 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,765 | 1,173 | 5,078 |
CSS | 3 | 8 | 2 | 574 |
PHP | 1 | 127 | 21 | 499 |
HTML | 1 | 13 | 3 | 108 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
images/select2.png | 0.51KB | 0.33KB | ▼ 34.94% |
images/custom_background.png | 1.87KB | 2.12KB | 0.00% |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |