Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼12.07ms] Passed 4 tests
An overview of server-side resources used by Wordpress Post Grid Layouts with Pagination - Sogrid
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.73 ▲1.76 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.93 ▼1.81 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.67 ▼1.05 |
Add New Post /wp-admin/post-new.php | 4.73 ▼1.16 | 48.04 ▼44.94 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.79 ▼0.47 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Wordpress Post Grid Layouts with Pagination - Sogrid: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.93 ▼0.33 | 9.60 ▲7.66 | 46.09 ▲1.40 |
Dashboard /wp-admin | 2,205 ▲28 | 5.58 ▼0.02 | 82.71 ▼7.36 | 37.62 ▼4.40 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▲0.00 | 40.87 ▲1.24 | 38.03 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6,207 ▲4,676 | 19.15 ▼4.25 | 911.77 ▲279.25 | 55.23 ▲1.37 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.22 ▼0.01 | 99.20 ▼9.79 | 42.42 ▼7.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php
- > /wp-content/plugins/sogrid/src/admin-panel/views/tabs/changelog.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sogrid/src/admin-panel/views/menu.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sogrid/src/admin-panel/views/menu.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/sogrid/src/admin-panel/views/tabs/settings.php:18
- > PHP Warning
Use of undefined constant SOGRID_VERSION - assumed 'SOGRID_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/panel.php on line 1
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 56
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 45
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 51
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 19
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 31
- > PHP Warning
Use of undefined constant SOGRID_URL - assumed 'SOGRID_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sogrid/src/admin-panel/views/tabs/general.php on line 72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires at least: Invalid version format
sogrid/plugin.php 92% from 13 tests
The entry point to "Wordpress Post Grid Layouts with Pagination - Sogrid" version 1.5.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sogrid.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7,035 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 615 | 628 | 2,994 |
JavaScript | 26 | 735 | 27 | 1,987 |
Sass | 33 | 463 | 83 | 1,693 |
CSS | 4 | 39 | 6 | 224 |
Markdown | 1 | 54 | 0 | 137 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 27 | 33.75% |
▷ Public methods | 66 | 82.50% |
▷ Protected methods | 11 | 13.75% |
▷ Private methods | 3 | 3.75% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
10 PNG files occupy 1.24MB with 0.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/admin-panel/img/settings.png | 373.83KB | 114.72KB | ▼ 69.31% |
src/admin-panel/img/blockquote-block.png | 344.13KB | 114.21KB | ▼ 66.81% |
src/admin-panel/img/blocks.png | 63.09KB | 24.15KB | ▼ 61.72% |
src/admin-panel/img/block-settings.png | 86.88KB | 24.81KB | ▼ 71.45% |
src/admin-panel/img/bokez-install.png | 55.18KB | 21.99KB | ▼ 60.16% |