Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.69ms] Passed 4 tests
This is a short check of server-side resources used by jQuery Masonry Image Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 21.81 ▼17.63 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.55 ▼1.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.84 ▲5.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.50 ▲5.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.92 ▼1.20 |
JMIG Options /wp-admin/options-general.php?page=jmig_options | 3.17 | 30.78 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for jQuery Masonry Image Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲167 | 13.64 ▼0.78 | 6.88 ▲5.06 | 37.50 ▼12.00 |
Dashboard /wp-admin | 2,210 ▲28 | 4.84 ▼0.05 | 106.91 ▲2.81 | 41.40 ▼2.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 38.45 ▲0.99 | 34.78 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 18.40 ▼4.84 | 607.66 ▼79.83 | 67.37 ▲10.54 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.35 ▼0.05 | 94.45 ▼18.60 | 42.19 ▼8.17 |
JMIG Options /wp-admin/options-general.php?page=jmig_options | 897 | 2.03 | 27.56 | 28.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jmig_options
- > Notice in wp-content/plugins/jquery-masonry-image-gallery/init.php+90
Trying to access array offset on value of type bool
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
The following issues need your attention
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jquery-masonry-image-gallery/functions/three-dot-six.php
- > /wp-content/plugins/jquery-masonry-image-gallery/functions/three-dot-five.php
- > /wp-content/plugins/jquery-masonry-image-gallery/functions/three-dot-nine.php
- > /wp-content/plugins/jquery-masonry-image-gallery/init.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: lazy load, gallery, jquery masonry, masonry
jquery-masonry-image-gallery/init.php 85% from 13 tests
"jQuery Masonry Image Gallery" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 201 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("jquery-masonry-image-gallery.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected562 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 201 | 26 | 303 |
CSS | 5 | 25 | 3 | 188 |
JavaScript | 5 | 27 | 6 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 11 | |
▷ Named functions | 11 | 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
There are no PNG files in this plugin