Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.81ms] Passed 4 tests
A check of server-side resources used by Smart Post Grid Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.92 ▼9.18 |
Dashboard /wp-admin | 3.35 ▲0.00 | 42.24 ▼18.65 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.74 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.06 ▼9.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.08 ▼0.25 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_postgrid_featured_posts_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Smart Post Grid Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.65 ▲0.29 | 1.65 ▼0.09 | 38.96 ▼5.09 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.04 | 83.88 ▼19.01 | 39.41 ▼5.87 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.01 | 34.49 ▼1.66 | 30.61 ▼6.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.51 ▲0.37 | 672.81 ▼24.07 | 51.68 ▼10.98 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.10 | 105.42 ▲7.35 | 46.27 ▲1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_postgrid_featured_posts_widget
- widget_theysaidso_widget
Smoke tests Passed 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: post, list, widget, post grid, grid
smart-post-grid-widget/main.php 92% from 13 tests
Analyzing the main PHP file in "Smart Post Grid Widget" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-post-grid-widget.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected252 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 20 | 168 |
CSS | 1 | 10 | 1 | 61 |
JavaScript | 1 | 5 | 5 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/like-icon-dark.png | 4.31KB | 1.94KB | ▼ 54.91% |
images/like-icon-light.png | 4.25KB | 1.94KB | ▼ 54.30% |
images/like.png | 27.13KB | 10.27KB | ▼ 62.14% |
images/star.png | 1.31KB | 1.45KB | 0.00% |
images/like-icon-tp.png | 17.70KB | 6.79KB | ▼ 61.66% |