Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲2.96ms] Passed 4 tests
This is a short check of server-side resources used by Catalog & Enquiry For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 45.43 ▲5.69 |
Dashboard /wp-admin | 3.79 ▲0.49 | 49.90 ▲0.13 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 55.78 ▲7.98 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 95.53 ▼1.97 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 43.30 ▲9.39 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.72 | 34.65 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Catalog & Enquiry For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.62 ▼0.74 | 4.52 ▲2.05 | 43.57 ▼1.20 |
Dashboard /wp-admin | 2,241 ▲50 | 4.81 ▼1.09 | 107.53 ▲12.94 | 48.24 ▲7.33 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.10 ▲0.09 | 41.39 ▲4.20 | 41.27 ▲8.78 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 17.75 ▼0.48 | 643.95 ▲22.32 | 46.89 ▼9.71 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.33 ▲0.08 | 100.08 ▼5.09 | 48.81 ▲5.91 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 987 | 2.06 | 25.14 | 30.09 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catalog-enquiry/inc/remove-cart.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catalog-enquiry/inc/style.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/catalog-enquiry/lib/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/catalog-enquiry/inc/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catalog-enquiry/inc/form.php:25
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
catalog-enquiry/index.php 85% from 13 tests
"Catalog & Enquiry For WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("catalog-enquiry.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
Success! There were no dangerous files found in this plugin2,263 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 563 | 1,684 | 2,066 |
PO File | 1 | 79 | 80 | 197 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 10 | 9.26% |
▷ Public methods | 85 | 78.70% |
▷ Protected methods | 23 | 21.30% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin