Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲7.08MB] [CPU: ▲48.10ms] 25% from 4 tests
A check of server-side resources used by Post Grid Combo - 36+ Gutenberg Blocks
It is recommended to improve the following
- RAM: Total memory usage must be kept under 10MB (currently 10.36MB on /wp-admin/admin.php?page=import_layouts)
- CPU: Total CPU usage must kept under 500.00ms (currently 1,549.56ms on /wp-admin/admin.php?page=import_layouts)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 7.08MB on /wp-admin/admin.php?page=import_layouts)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.71 ▲7.24 | 76.93 ▲36.04 |
Dashboard /wp-admin | 10.33 ▲7.03 | 96.89 ▲47.34 |
Posts /wp-admin/edit.php | 10.45 ▲7.08 | 99.57 ▲49.94 |
Add New Post /wp-admin/post-new.php | 14.04 ▲8.15 | 143.90 ▲61.26 |
Media Library /wp-admin/upload.php | 10.22 ▲6.99 | 91.84 ▲59.09 |
All Saved Layouts /wp-admin/edit.php?post_type=post_grid_layout | 10.30 | 79.11 |
Overview /wp-admin/admin.php?page=post-grid-overview | 10.29 | 74.49 |
All Post Grid /wp-admin/edit.php?post_type=post_grid | 10.30 | 95.83 |
All Saved Templates /wp-admin/edit.php?post_type=post_grid_template | 10.30 | 77.44 |
Create New /wp-admin/post-new.php?post_type=post_grid | 10.41 | 89.74 |
Settings /wp-admin/admin.php?page=post-grid-settings | 10.26 | 80.96 |
Import Layouts /wp-admin/admin.php?page=import_layouts | 10.36 | 1,549.56 |
Server storage [IO: ▲53.16MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 53.16MB)
Filesystem: 784 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Grid Combo - 36+ Gutenberg Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,166 ▲404 | 15.28 ▲1.05 | 5.73 ▲4.16 | 37.59 ▼1.10 |
Dashboard /wp-admin | 2,447 ▲267 | 6.15 ▲0.44 | 120.25 ▲18.73 | 41.26 ▼3.61 |
Posts /wp-admin/edit.php | 2,376 ▲276 | 3.45 ▲1.51 | 56.69 ▲15.79 | 35.70 ▲5.40 |
Add New Post /wp-admin/post-new.php | 6,604 ▲5,075 | 27.88 ▲4.26 | 1,090.64 ▲494.42 | 79.20 ▲20.66 |
Media Library /wp-admin/upload.php | 1,512 ▲112 | 4.19 ▼0.06 | 83.17 ▼16.39 | 40.36 ▼6.66 |
All Saved Layouts /wp-admin/edit.php?post_type=post_grid_layout | 1,344 | 3.32 | 54.23 | 30.76 |
Overview /wp-admin/admin.php?page=post-grid-overview | 2,544 | 9.68 | 315.85 | 141.52 |
All Post Grid /wp-admin/edit.php?post_type=post_grid | 1,344 | 3.25 | 49.88 | 27.78 |
All Saved Templates /wp-admin/edit.php?post_type=post_grid_template | 1,390 | 3.30 | 52.79 | 30.71 |
Create New /wp-admin/post-new.php?post_type=post_grid | 5,782 | 7.65 | 226.74 | 135.18 |
Settings /wp-admin/admin.php?page=post-grid-settings | 1,939 | 6.20 | 117.11 | 40.18 |
Import Layouts /wp-admin/admin.php?page=import_layouts | 1,822 | 3.11 | 44.44 | 77.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=post-grid-overview
- > Network (severe)
https://getpostgrid.com/wp-content/uploads/2022/11/Post-Layout-Library.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: Please add an image for screenshot #2 (screenshot-2)
post-grid/post-grid.php 92% from 13 tests
"Post Grid Combo - 36+ Gutenberg Blocks" version 2.2.64's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
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
Good job! No executable or dangerous file extensions detected459,085 lines of code in 583 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 313 | 42,060 | 17,004 | 333,172 |
PHP | 136 | 19,775 | 1,870 | 43,383 |
CSS | 36 | 9,576 | 477 | 32,023 |
HTML | 2 | 2,099 | 2 | 17,117 |
SVG | 9 | 0 | 13 | 13,744 |
JSON | 80 | 4 | 0 | 13,312 |
PO File | 5 | 2,362 | 4,878 | 5,246 |
Markdown | 1 | 520 | 0 | 791 |
XML | 1 | 6 | 0 | 297 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 62.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 663.00 |
Average method complexity | 10.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 91 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 572 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 572 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 399 | |
▷ Named functions | 342 | 85.71% |
▷ Anonymous functions | 57 | 14.29% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 1.45MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/thumb.png | 993.82KB | 387.88KB | ▼ 60.97% |
assets/frontend/images/placeholder.png | 32.82KB | 13.55KB | ▼ 58.71% |
assets/admin/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/admin/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/admin/images/paddle-net.png | 26.23KB | 3.88KB | ▼ 85.19% |