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.16MB] [CPU: ▼13.36ms] Passed 4 tests
Server-side resources used by Amwal Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.45 ▼2.23 |
Dashboard /wp-admin | 3.20 ▼0.10 | 32.42 ▼19.28 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 35.69 ▼13.44 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 70.20 ▼18.48 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 33.37 ▼1.18 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
amwal_valid_app_id |
widget_theysaidso_widget |
db_upgraded |
wc_hide_shipping_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Amwal Checkout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.72 ▲0.40 | 1.82 ▼0.03 | 43.96 ▼0.78 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.08 | 89.93 ▼9.47 | 38.16 ▼5.33 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.01 | 39.42 ▲1.22 | 36.17 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.32 ▼0.40 | 698.34 ▼3.85 | 54.57 ▼9.49 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.01 | 104.64 ▲3.10 | 43.96 ▼1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- amwal_valid_app_id
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- wc_hide_shipping_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function amwalwc_load_template() in wp-content/plugins/amwal-checkout/templates/admin/tabs/amwal-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amwal-checkout/includes/button.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function amwalwc_load_template() in wp-content/plugins/amwal-checkout/templates/admin/tabs/amwal-app-info.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function amwalwc_load_template() in wp-content/plugins/amwal-checkout/templates/admin/tabs/amwal-styles.php:8
- > PHP Fatal error
Uncaught Error: Class 'Amwal\\Http\\Controllers\\Controller' not found in wp-content/plugins/amwal-checkout/includes/Http/Controllers/CompleteOrderController.php:12
- > PHP Fatal error
Uncaught Error: Class 'AmwalWC\\Admin\\Fields\\Field' not found in wp-content/plugins/amwal-checkout/includes/admin/fields/class-select.php:13
- > PHP Fatal error
Uncaught Error: Class 'AmwalWC\\Admin\\Fields\\Field' not found in wp-content/plugins/amwal-checkout/includes/admin/fields/class-checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'Amwal\\Http\\Controllers\\Controller' not found in wp-content/plugins/amwal-checkout/includes/Http/Controllers/CancelOrderController.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function amwalwc_get_settings_tabs() in wp-content/plugins/amwal-checkout/templates/admin/amwal-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function amwalwc_load_template() in wp-content/plugins/amwal-checkout/templates/admin/tabs/amwal-shipping.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: one click checkout, amwal, woocommerce, woocommerce checkout, checkout...
amwal-checkout/amwal.php 92% from 13 tests
The primary PHP file in "Amwal Checkout" version 1.0.52 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("amwal-checkout.php" instead of "amwal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,315 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 825 | 1,478 | 4,241 |
CSS | 1 | 65 | 3 | 327 |
TypeScript | 1 | 24 | 2 | 292 |
PO File | 1 | 92 | 93 | 231 |
SVG | 2 | 0 | 0 | 96 |
JavaScript | 4 | 6 | 12 | 68 |
JSON | 3 | 0 | 0 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 9 | 31.03% |
Methods | 160 | |
▷ Static methods | 25 | 15.62% |
▷ Public methods | 127 | 79.38% |
▷ Protected methods | 21 | 13.12% |
▷ Private methods | 12 | 7.50% |
Functions | 134 | |
▷ Named functions | 126 | 94.03% |
▷ Anonymous functions | 8 | 5.97% |
Constants | 71 | |
▷ Global constants | 58 | 81.69% |
▷ Class constants | 13 | 18.31% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logos.png | 5.75KB | 3.31KB | ▼ 42.48% |
assets/images/logo.png | 17.65KB | 8.38KB | ▼ 52.54% |