Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests
Server-side resources used by woocommerce grid
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.42 ▼0.13 |
Dashboard /wp-admin | 3.50 ▲0.19 | 52.93 ▲1.26 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 56.61 ▲8.28 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.35 | 72.20 ▼21.22 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.96 ▼2.40 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 135 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
_cs_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for woocommerce grid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,259 ▲524 | 16.15 ▲1.92 | 9.00 ▲7.32 | 42.88 ▲2.39 |
Dashboard /wp-admin | 2,513 ▲321 | 7.01 ▲2.07 | 130.43 ▲18.93 | 38.87 ▼1.70 |
Posts /wp-admin/edit.php | 2,422 ▲333 | 3.89 ▲1.84 | 60.05 ▲20.19 | 36.24 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6,491 ▲4,958 | 19.53 ▼3.56 | 891.27 ▲224.28 | 46.90 ▼18.76 |
Media Library /wp-admin/upload.php | 1,558 ▲170 | 4.80 ▲0.65 | 87.57 ▼20.67 | 43.28 ▼4.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- _cs_options
- theysaidso_admin_options
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-animated-grid/public/partials/woo-animated-grid-public-display.php
- > /wp-content/plugins/woo-animated-grid/admin/partials/woo-animated-grid-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please describe screenshot #2 in woo-animated-grid/assets to your readme.txt
woo-animated-grid/woo-animated-grid.php 92% from 13 tests
The entry point to "woocommerce grid" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin28,120 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,928 |
JavaScript | 15 | 1,155 | 923 | 4,925 |
CSS | 8 | 170 | 52 | 4,009 |
PHP | 56 | 1,160 | 1,439 | 3,072 |
Sass | 5 | 287 | 0 | 1,837 |
SVG | 1 | 0 | 0 | 640 |
PO File | 6 | 261 | 285 | 601 |
Markdown | 1 | 18 | 0 | 97 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 10.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 2 | 5.26% |
▷ Concrete classes | 36 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 6 | 5.04% |
▷ Public methods | 114 | 95.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.20% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/10.png | 6.47KB | 6.93KB | 0.00% |
public/images/13.png | 26.49KB | 28.51KB | 0.00% |
cs-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
cs-framework/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
public/images/11.png | 12.99KB | 13.94KB | 0.00% |