Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.94ms] Passed 4 tests
This is a short check of server-side resources used by Cab Grid
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.31 ▼6.10 |
Dashboard /wp-admin | 3.43 ▲0.13 | 42.84 ▼2.11 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.65 ▼1.22 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.75 ▼2.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.40 ▲3.19 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_cabgridwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Cab Grid
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲136 | 13.77 ▼0.58 | 11.69 ▲9.98 | 38.37 ▼3.92 |
Dashboard /wp-admin | 2,210 ▲30 | 5.56 ▼0.06 | 88.97 ▼9.14 | 80.59 ▲41.50 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▲0.04 | 39.63 ▼0.10 | 37.64 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6,377 ▲4,851 | 27.53 ▲4.40 | 871.17 ▲187.81 | 34.73 ▼19.15 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.11 ▼0.09 | 95.76 ▼0.45 | 67.59 ▲25.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_cabgridwidget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cab-grid/cab-grid-compatibility.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cab-grid/cab-grid-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/cab-grid/cab-grid-form-amp.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cab-grid/cab-grid-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 40 tag instead of maximum 10
cab-grid/cab-grid.php 92% from 13 tests
The main PHP script in "Cab Grid" version 1.6.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 151 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
Success! There were no dangerous files found in this plugin2,779 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 708 | 805 | 1,991 |
PHP | 5 | 80 | 37 | 744 |
CSS | 2 | 2 | 1 | 42 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-menu-icon.png | 0.47KB | 0.54KB | 0.00% |
chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/icon-128x128.png | 2.81KB | 2.24KB | ▼ 20.12% |
chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |