Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.46MB] [CPU: ▲1.41ms] Passed 4 tests
This is a short check of server-side resources used by AForms Eats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 42.86 ▲7.01 |
Dashboard /wp-admin | 3.79 ▲0.48 | 47.69 ▲0.20 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 55.69 ▲4.73 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 97.00 ▼2.74 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 36.71 ▲3.44 |
Orders /wp-admin/admin.php?page=wqe-order | 4.08 | 43.59 |
Form Settings /wp-admin/admin.php?page=wqe-settings | 3.87 | 38.52 |
Forms /wp-admin/admin.php?page=wqe-form | 3.85 | 35.05 |
Server storage [IO: ▲4.55MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 344 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wqeorders |
wp_wqeforms |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AForms Eats: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.23 ▼1.02 | 1.72 ▼0.01 | 43.72 ▲0.47 |
Dashboard /wp-admin | 2,230 ▲48 | 5.83 ▼0.03 | 105.51 ▲0.14 | 41.76 ▲0.60 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▲0.02 | 39.58 ▼1.78 | 34.88 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.03 ▼0.22 | 673.15 ▲36.76 | 57.75 ▲0.87 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.21 ▼0.03 | 93.45 ▼8.10 | 42.43 ▼0.95 |
Orders /wp-admin/admin.php?page=wqe-order | 889 | 2.19 | 25.93 | 26.87 |
Form Settings /wp-admin/admin.php?page=wqe-settings | 904 | 2.99 | 65.74 | 29.18 |
Forms /wp-admin/admin.php?page=wqe-form | 889 | 1.75 | 37.53 | 28.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/aforms-eats/vendor/aura/payload/phpunit.php
- > /wp-content/plugins/aforms-eats/vendor/leonelquinteros/php-toml/travis-test/debug.php
- > /wp-content/plugins/aforms-eats/src/template/front/form.php
- > /wp-content/plugins/aforms-eats/src/template/admin/form.php
- > /wp-content/plugins/aforms-eats/vendor/tyam/bamboo/tests/templates/0content.php
- > /wp-content/plugins/aforms-eats/vendor/aura/di/phpunit.php
- > /wp-content/plugins/aforms-eats/vendor/tyam/bamboo/tests/templates/subdir/0nested.php
- > /wp-content/plugins/aforms-eats/vendor/aura/payload-interface/phpunit.php
- 126× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: status in wp-content/plugins/aforms-eats/src/template/admin/form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aforms-eats/src/template/admin/settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\BaseConstraint' not found in wp-content/plugins/aforms-eats/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:20
- > PHP Fatal error
Uncaught Error: Call to a member function content() on null in wp-content/plugins/aforms-eats/vendor/tyam/bamboo/tests/templates/subdir/1sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function AFormsEats\\plugins_url() in wp-content/plugins/aforms-eats/src/Config.php:27
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/aforms-eats/vendor/scssphp/scssphp/src/Formatter/Compact.php:21
- > PHP Fatal error
Trait 'AFormsEats\\Domain\\Lib' not found in wp-content/plugins/aforms-eats/src/Domain/InputProcessor.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Aura\\Di\\Exception' not found in wp-content/plugins/aforms-eats/vendor/aura/di/src/Exception/ServiceNotObject.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Aura\\Di\\Injection\\LazyInterface' not found in wp-content/plugins/aforms-eats/vendor/aura/di/src/Injection/LazyArray.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/aforms-eats/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: restaurant menu, food delivery, price calculator, order form, restaurant ordering...
aforms-eats/aforms-eats.php 92% from 13 tests
The principal PHP file in "AForms Eats" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 257 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin30,335 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 4,547 | 7,257 | 19,186 |
JavaScript | 13 | 194 | 218 | 4,076 |
Sass | 2 | 63 | 11 | 2,181 |
Markdown | 33 | 880 | 0 | 2,156 |
PO File | 2 | 651 | 660 | 1,334 |
JSON | 17 | 31 | 0 | 1,174 |
TOML | 1 | 100 | 64 | 119 |
XML | 5 | 2 | 0 | 76 |
YAML | 1 | 0 | 0 | 20 |
Dockerfile | 1 | 6 | 8 | 11 |
CSS | 2 | 0 | 2 | 2 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,214)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 17.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,214.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 20 | |
Traits | 4 | |
Classes | 169 | |
▷ Abstract classes | 5 | 2.96% |
▷ Concrete classes | 164 | 97.04% |
▷ Final classes | 0 | 0.00% |
Methods | 1,092 | |
▷ Static methods | 79 | 7.23% |
▷ Public methods | 658 | 60.26% |
▷ Protected methods | 398 | 36.45% |
▷ Private methods | 36 | 3.30% |
Functions | 39 | |
▷ Named functions | 8 | 20.51% |
▷ Anonymous functions | 31 | 79.49% |
Constants | 132 | |
▷ Global constants | 10 | 7.58% |
▷ Class constants | 122 | 92.42% |
▷ Public constants | 122 | 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
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/asset/noimage.png | 2.88KB | 1.40KB | ▼ 51.32% |
vendor/container-interop/container-interop/docs/images/priority.png | 15.87KB | 8.86KB | ▼ 44.20% |
vendor/container-interop/container-interop/docs/images/side_by_side_containers.png | 15.88KB | 8.43KB | ▼ 46.90% |
vendor/container-interop/container-interop/docs/images/interoperating_containers.png | 25.13KB | 12.83KB | ▼ 48.97% |
asset/noimage.png | 1.62KB | 1.40KB | ▼ 13.22% |