Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.59ms] Passed 4 tests
A check of server-side resources used by Smart Grid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.99 ▼3.88 |
Dashboard /wp-admin | 3.54 ▲0.23 | 54.81 ▲3.22 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.97 ▲4.66 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 87.99 ▼2.29 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.32 ▲0.58 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio | 3.46 | 43.96 |
Smart Grid Settins /wp-admin/edit.php?post_type=portfolio&page=grid_settings | 3.43 | 35.61 |
portfolio /wp-admin/edit.php?post_type=portfolio | 3.50 | 42.84 |
Add New portfolio /wp-admin/post-new.php?post_type=portfolio | 3.92 | 55.85 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 360 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wp_grid |
post_grid |
can_compress_scripts |
theysaidso_admin_options |
P_grid |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Grid
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,143 ▲354 | 15.65 ▲0.92 | 8.92 ▲6.99 | 60.15 ▲14.55 |
Dashboard /wp-admin | 2,407 ▲201 | 6.70 ▲1.85 | 122.71 ▲7.99 | 40.64 ▼3.54 |
Posts /wp-admin/edit.php | 2,313 ▲221 | 3.60 ▲1.57 | 55.24 ▲19.34 | 32.88 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 18.63 ▼4.57 | 632.03 ▼58.78 | 34.72 ▼38.85 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.39 ▲0.10 | 84.82 ▼27.43 | 44.97 ▼9.58 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio | 1,492 | 3.41 | 45.53 | 30.79 |
Smart Grid Settins /wp-admin/edit.php?post_type=portfolio&page=grid_settings | 1,521 | 4.47 | 90.09 | 33.60 |
portfolio /wp-admin/edit.php?post_type=portfolio | 1,277 | 3.60 | 46.42 | 28.78 |
Add New portfolio /wp-admin/post-new.php?post_type=portfolio | 1,834 | 4.00 | 63.72 | 34.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_theysaidso_widget
- wp_grid
- post_grid
- P_grid
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 46× 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_header() in wp-content/plugins/smart-grid/portfolio-grid.php:2
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/smart-grid/lib/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/smart-grid/lib/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/smart-grid/lib/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/smart-grid/lib/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/smart-grid/lib/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/smart-grid/lib/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-grid/admin/portfolio-meta.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/smart-grid/lib/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-grid/includes/portfolio-shortcode.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
5 plugin tags: portfolio grid, grid view, portfolio, woocommerce grid, post grid
smart-grid/smart-grid.php 92% from 13 tests
The main file in "Smart Grid" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected47,144 lines of code in 212 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 66 | 2,167 | 6,108 | 7,333 |
CSS | 15 | 1,172 | 1,159 | 4,784 |
JavaScript | 8 | 340 | 507 | 1,417 |
SVG | 1 | 0 | 0 | 655 |
Markdown | 2 | 214 | 0 | 632 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 8 | 11.94% |
▷ Concrete classes | 59 | 88.06% |
▷ Final classes | 0 | 0.00% |
Methods | 539 | |
▷ Static methods | 86 | 15.96% |
▷ Public methods | 448 | 83.12% |
▷ Protected methods | 88 | 16.33% |
▷ Private methods | 3 | 0.56% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
lib/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
lib/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |