Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.63ms] Passed 4 tests
Server-side resources used by Catalog for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 49.34 ▲10.78 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.25 ▼1.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.03 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.19 ▼0.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.04 ▼0.02 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Catalog for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.42 ▲0.18 | 2.03 ▲0.16 | 43.70 ▼0.35 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.97 | 102.67 ▼3.72 | 41.09 ▼4.53 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.01 | 38.50 ▼0.92 | 33.57 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.14 ▼0.19 | 677.08 ▲11.37 | 61.32 ▲13.41 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.15 ▲0.03 | 97.28 ▼14.13 | 41.37 ▼5.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 4
- > PHP Notice
Undefined variable: gen_settings in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 12
- > PHP Notice
Undefined variable: gen_settings in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/catalog-for-woocommerce/assets/css/btn-style.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
catalog-for-woocommerce/mainplugin.php 77% from 13 tests
Analyzing the main PHP file in "Catalog for Woocommerce" version 1.2.0
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("catalog-for-woocommerce.php" instead of "mainplugin.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
There were no executable files found in this plugin581 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 541 | 22 | 564 |
JavaScript | 1 | 17 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
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 | 15 | |
▷ Named functions | 15 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/demo-btn.png | 3.58KB | 2.59KB | ▼ 27.61% |
assets/images/image-frame-even.png | 0.67KB | 0.62KB | ▼ 8.42% |
assets/images/aa2.png | 1.34KB | 1.26KB | ▼ 5.77% |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |
assets/images/head-arrow.png | 1.68KB | 1.43KB | ▼ 14.83% |