Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼0.27ms] Passed 4 tests
Server-side resources used by Safan Catalog & Enquiry For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 51.02 ▲9.95 |
Dashboard /wp-admin | 3.79 ▲0.49 | 53.08 ▼1.95 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 56.45 ▲10.49 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 91.91 ▼12.93 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 42.10 ▲3.83 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.72 | 37.90 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Safan Catalog & Enquiry For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.36 ▼0.31 | 1.80 ▲0.08 | 43.72 ▲1.02 |
Dashboard /wp-admin | 2,229 ▲55 | 5.63 ▼0.04 | 97.93 ▲5.46 | 45.63 ▲2.43 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.04 ▲0.03 | 40.14 ▲3.78 | 40.56 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,570 ▲39 | 23.33 ▲0.10 | 653.09 ▼20.97 | 55.48 ▼2.51 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.24 ▲0.02 | 99.33 ▼3.43 | 46.27 ▲5.18 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 999 | 2.05 | 26.11 | 40.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/safan-catalog-enquiry/parts/form.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/safan-catalog-enquiry/lib/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/safan-catalog-enquiry/parts/style.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/safan-catalog-enquiry/parts/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/safan-catalog-enquiry/parts/remove-cart.php:36
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
safan-catalog-enquiry/scatalog.php 85% from 13 tests
"Safan 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
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("safan-catalog-enquiry.php" instead of "scatalog.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,264 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 563 | 1,684 | 2,067 |
PO File | 1 | 79 | 80 | 197 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin