Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼1.29ms] Passed 4 tests
A check of server-side resources used by AForms -- Form Builder for Price Calculator & Cost Estimation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 48.23 ▲1.34 |
Dashboard /wp-admin | 3.74 ▲0.43 | 55.49 ▼0.25 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 58.80 ▲3.89 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 94.20 ▼8.59 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.27 ▲2.34 |
Form Settings /wp-admin/admin.php?page=wq-settings | 3.89 | 42.10 |
Forms /wp-admin/admin.php?page=wq-form | 3.85 | 38.57 |
Orders /wp-admin/admin.php?page=wq-order | 3.86 | 41.41 |
Server storage [IO: ▲5.39MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 331 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wqorders |
wp_wqforms |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AForms -- Form Builder for Price Calculator & Cost Estimation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.31 ▼0.44 | 1.69 ▼0.37 | 39.87 ▼4.79 |
Dashboard /wp-admin | 2,219 ▲42 | 5.57 ▼0.13 | 89.87 ▼10.39 | 40.53 ▼7.61 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▼0.01 | 35.08 ▲0.21 | 31.38 ▼6.80 |
Add New Post /wp-admin/post-new.php | 6,268 ▲4,742 | 26.04 ▲8.51 | 890.24 ▲233.46 | 56.93 ▼5.73 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.22 ▲0.01 | 96.60 ▼10.16 | 43.86 ▼3.71 |
Form Settings /wp-admin/admin.php?page=wq-settings | 977 | 3.02 | 71.97 | 31.95 |
Forms /wp-admin/admin.php?page=wq-form | 898 | 1.93 | 37.31 | 24.50 |
Orders /wp-admin/admin.php?page=wq-order | 781 | 1.86 | 25.67 | 25.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/payload/phpunit.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/tyam/bamboo/tests/templates/subdir/0nested.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/tyam/bamboo/tests/templates/0content.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/di/phpunit.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/payload-interface/phpunit.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/src/template/front/form.php
- > /wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/leonelquinteros/php-toml/travis-test/debug.php
- 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/di/tests/ResolutionHelperTest.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/src/template/admin/form.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/di/tests/Injection/LazyIncludeTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'Aura\\Di\\Exception' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/aura/di/src/Exception/ContainerLocked.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php:13
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' not found in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php:5
- > PHP Warning
require(wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/justinrainbow/json-schema/demo/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/justinrainbow/json-schema/demo/demo.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function wrap() on null in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/vendor/tyam/bamboo/tests/templates/1usersidebar.php:1
- > PHP Notice
Undefined variable: status in wp-content/plugins/aforms-form-builder-for-price-calculator-cost-estimation/src/template/admin/form.php on line 3
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
aforms-form-builder-for-price-calculator-cost-estimation/aforms.php 77% from 13 tests
The principal PHP file in "AForms -- Form Builder for Price Calculator & Cost Estimation" v. 2.2.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 206 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("aforms-form-builder-for-price-calculator-cost-estimation.php" instead of "aforms.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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin26,722 lines of code in 282 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 2,040 | 4,081 | 11,261 |
JavaScript | 16 | 258 | 161 | 6,130 |
Sass | 2 | 81 | 40 | 3,164 |
PO File | 4 | 1,318 | 1,338 | 2,768 |
Markdown | 31 | 859 | 0 | 2,111 |
JSON | 16 | 31 | 0 | 1,060 |
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 Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 21 | |
Traits | 4 | |
Classes | 150 | |
▷ Abstract classes | 3 | 2.00% |
▷ Concrete classes | 147 | 98.00% |
▷ Final classes | 0 | 0.00% |
Methods | 752 | |
▷ Static methods | 69 | 9.18% |
▷ Public methods | 614 | 81.65% |
▷ Protected methods | 113 | 15.03% |
▷ Private methods | 25 | 3.32% |
Functions | 24 | |
▷ Named functions | 6 | 25.00% |
▷ Anonymous functions | 18 | 75.00% |
Constants | 68 | |
▷ Global constants | 10 | 14.71% |
▷ Class constants | 58 | 85.29% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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/interoperating_containers.png | 25.13KB | 12.83KB | ▼ 48.97% |
asset/noimage.png | 1.62KB | 1.40KB | ▼ 13.22% |
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% |