Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼2.41ms] Passed 4 tests
Server-side resources used by Grid Plus - Unlimited grid layout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 44.05 ▲5.65 |
Dashboard /wp-admin | 3.56 ▲0.25 | 51.26 ▲4.30 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 47.52 ▼1.87 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 86.41 ▼16.93 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 35.60 ▲4.87 |
All grid /wp-admin/admin.php?page=grid_plus | 3.47 | 36.84 |
Add grid /wp-admin/admin.php?page=grid_plus_setting | 3.58 | 44.61 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Grid Plus - Unlimited grid layout
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.28 ▼1.38 | 1.81 ▼0.05 | 44.00 ▼2.06 |
Dashboard /wp-admin | 2,236 ▲51 | 4.95 ▼1.07 | 102.36 ▲5.28 | 36.90 ▼6.47 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▲0.01 | 32.89 ▼7.06 | 35.20 ▼2.64 |
Add New Post /wp-admin/post-new.php | 6,357 ▲4,843 | 26.32 ▲8.65 | 952.42 ▲305.72 | 37.74 ▼20.46 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.01 | 103.30 ▲5.38 | 47.90 ▲5.30 |
All grid /wp-admin/admin.php?page=grid_plus | 977 | 2.31 | 41.10 | 35.67 |
Add grid /wp-admin/admin.php?page=grid_plus_setting | 4,753 | 6.37 | 205.11 | 92.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 no errors were found, this is by no means 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 fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/grid-plus/core/post-format-ui/post-format-ui.php
- > /wp-content/plugins/grid-plus/core/class-g5plus-image-resize.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/grid-plus/partials/carousel.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/grid-plus/core/post-format-ui/templates/format-gallery.php:10
- > PHP Fatal error
Uncaught Error: Class 'Grid_Plus_Base' not found in wp-content/plugins/grid-plus/shortcodes/carousel-shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/grid-plus/partials/animation.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/grid-plus/partials/layout.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/grid-plus/skins/thumbnail.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/grid-plus/partials/color.php:9
- > PHP Warning
Use of undefined constant G5PLUS_GRID_URL - assumed 'G5PLUS_GRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/grid-plus/partials/skins.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/grid-plus/partials/bar/layout-bar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Grid_Plus' not found in wp-content/plugins/grid-plus/partials/skins.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #10, #9 in grid-plus/assets to your readme.txt
grid-plus/grid-plus.php Passed 13 tests
The main PHP file in "Grid Plus - Unlimited grid layout" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Grid Plus - Unlimited grid layout for any post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected31,472 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 3,350 | 2,331 | 18,049 |
CSS | 16 | 530 | 70 | 6,352 |
PHP | 44 | 297 | 450 | 3,668 |
SVG | 2 | 0 | 0 | 2,713 |
PO File | 3 | 255 | 314 | 592 |
Markdown | 1 | 42 | 0 | 98 |
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.42 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 15 | 23.44% |
▷ Public methods | 62 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.12% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/donate.png | 3.13KB | 1.95KB | ▼ 37.89% |
assets/lib/light-gallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
assets/lib/light-gallery/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
assets/lib/light-gallery/img/video-play.png | 4.42KB | 1.05KB | ▼ 76.27% |