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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.18ms] Passed 4 tests
A check of server-side resources used by WooCommerce Product Grids
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 32.66 ▼8.74 |
Dashboard /wp-admin | 3.36 ▲0.01 | 43.43 ▼11.88 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.45 ▼6.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.08 ▼13.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.81 ▲0.50 |
Server storage [IO: ▲3.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Product Grids
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.35 ▼0.95 | 1.73 ▼0.10 | 39.09 ▼1.82 |
Dashboard /wp-admin | 2,231 ▲43 | 4.85 ▼0.10 | 97.22 ▼3.76 | 39.44 ▼1.86 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.06 ▲0.07 | 34.63 ▼6.21 | 33.29 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.39 ▼4.77 | 639.62 ▼38.21 | 58.76 ▼1.84 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.42 ▲0.21 | 96.54 ▼6.00 | 43.21 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wct-woocommerce-responsive-grid/index.php:19
- > 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 important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wct-woocommerce-responsive-grid ===
)
wct-woocommerce-responsive-grid/index.php 92% from 13 tests
This is the main PHP file of "WooCommerce Product Grids" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wct-woocommerce-responsive-grid.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected24,565 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 636 | 344 | 18,055 |
SVG | 3 | 0 | 3 | 4,945 |
JavaScript | 2 | 327 | 170 | 1,357 |
PHP | 1 | 91 | 35 | 184 |
HTML | 2 | 18 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.59MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
premium.png | 36.67KB | 13.28KB | ▼ 63.78% |
screenshot-1.png | 417.85KB | 116.61KB | ▼ 72.09% |
icon-128x128.png | 24.04KB | 7.90KB | ▼ 67.15% |
(invalid) assets/css/owl.video.play.png | 0.24KB | 0.00KB | ▼ 100.00% |
wct_grid_assets/star-rating.png | 66.29KB | 11.30KB | ▼ 82.96% |