Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.00ms] Passed 4 tests
A check of server-side resources used by AWSA Quick Buy for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 39.03 ▼2.12 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.80 ▼9.84 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.97 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.40 ▼1.19 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.84 ▲3.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for AWSA Quick Buy for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.71 ▼0.69 | 2.15 ▲0.38 | 43.70 ▲1.20 |
Dashboard /wp-admin | 2,222 ▲48 | 4.83 ▼0.21 | 107.14 ▼12.68 | 38.10 ▼2.19 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.06 ▲0.01 | 39.59 ▲5.01 | 34.89 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.15 ▲4.61 | 663.47 ▲65.20 | 50.88 ▼12.41 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.25 ▲0.11 | 94.62 ▼1.50 | 41.67 ▲0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AWSA_Settings_Page_Fields' not found in wp-content/plugins/awsa-quick-buy/includes/class-quick-buy-settings-page-fields.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: woocommerce quick buy
awsa-quick-buy/awsa-quick-buy.php Passed 13 tests
This is the main PHP file of "AWSA Quick Buy for Woocommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
With this plugin, you can make your sales easier for your social network customers, and with just a SKU and using the quick buy form
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
Everything looks great! No dangerous files found in this plugin912 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 177 | 516 | 838 |
PO File | 1 | 27 | 34 | 74 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 2 | 22.22% |
Methods | 48 | |
▷ Static methods | 30 | 62.50% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
There are no PNG files in this plugin