Benchmarks
Plugin footprint 65% 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: ▲1.75MB] [CPU: ▲12.65ms] Passed 4 tests
Server-side resources used by Download Manager and Payment Form WordPress Plugin - WP SmartPay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.33 ▲1.86 | 55.13 ▲12.66 |
Dashboard /wp-admin | 4.99 ▲1.69 | 58.21 ▲6.73 |
Posts /wp-admin/edit.php | 5.10 ▲1.75 | 62.41 ▲16.64 |
Add New Post /wp-admin/post-new.php | 7.76 ▲1.88 | 112.14 ▲22.02 |
Media Library /wp-admin/upload.php | 4.92 ▲1.69 | 52.13 ▲14.56 |
Dashboard /wp-admin/admin.php?page=smartpay | 5.03 | 49.07 |
Getting Started /wp-admin/admin.php?page=wpsmartpay-getting-started | 4.88 | 43.97 |
Integrations /wp-admin/admin.php?page=smartpay-integrations | 4.93 | 58.72 |
Forms /wp-admin/admin.php?page=smartpay-form | 5.26 | 51.08 |
Settings /wp-admin/admin.php?page=smartpay-setting | 5.08 | 52.79 |
Server storage [IO: ▲3.37MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 475 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_smartpay_payments |
wp_smartpay_coupons |
wp_smartpay_products |
wp_smartpay_forms |
wp_smartpay_customers |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
smartpay_db_version |
can_compress_scripts |
theysaidso_admin_options |
smartpay_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Download Manager and Payment Form WordPress Plugin - WP SmartPay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,200 ▲429 | 20.45 ▲5.90 | 13.77 ▲11.64 | 35.40 ▼10.13 |
Dashboard /wp-admin | 2,459 ▲271 | 9.79 ▲3.88 | 260.37 ▲142.02 | 52.74 ▲7.79 |
Posts /wp-admin/edit.php | 2,368 ▲279 | 9.28 ▲7.26 | 80.09 ▲42.43 | 39.87 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6,283 ▲4,769 | 19.02 ▲1.51 | 806.76 ▲95.45 | 41.00 ▼22.78 |
Media Library /wp-admin/upload.php | 1,662 ▲274 | 12.06 ▲7.91 | 135.08 ▲19.20 | 51.01 ▲1.14 |
Coupons /wp-admin/admin.php?page=smartpay#/coupons | 1,452 | 12.43 | 164.22 | 74.94 |
Dashboard /wp-admin/admin.php?page=smartpay | 1,684 | 17.27 | 311.37 | 103.08 |
Getting Started /wp-admin/admin.php?page=wpsmartpay-getting-started | 1,655 | 19.55 | 360.49 | 83.93 |
Integrations /wp-admin/admin.php?page=smartpay-integrations | 1,397 | 8.94 | 78.57 | 34.49 |
Products /wp-admin/admin.php?page=smartpay#/products | 1,455 | 12.64 | 124.17 | 73.15 |
Forms /wp-admin/admin.php?page=smartpay-form | 1,265 | 13.09 | 144.51 | 26.53 |
Payments /wp-admin/admin.php?page=smartpay#/payments | 1,458 | 12.39 | 120.02 | 75.77 |
Settings /wp-admin/admin.php?page=smartpay-setting | 1,947 | 9.08 | 67.42 | 54.29 |
Customers /wp-admin/admin.php?page=smartpay#/customers | 1,460 | 12.36 | 125.48 | 69.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_smartpay_payments
- wp_smartpay_products
- wp_smartpay_coupons
- wp_smartpay_customers
- wp_smartpay_forms
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- widget_recent-posts
- smartpay_settings
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- smartpay_db_version
Smoke tests 50% 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)
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/smartpay/resources/views/form-builder.php
- > /wp-content/plugins/smartpay/resources/views/admin.php
- 260× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageFactoryInterface' not found in wp-content/plugins/smartpay/vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorageFactory.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException' not found in wp-content/plugins/smartpay/vendor/symfony/http-foundation/File/Exception/FormSizeFileException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/smartpay/vendor/ramsey/uuid/src/Exception/InvalidArgumentException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' not found in wp-content/plugins/smartpay/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'SmartPay\\Framework\\Support\\ServiceProvider' not found in wp-content/plugins/smartpay/app/Providers/IntegrationServiceProvider.php:7
- > PHP Notice
Undefined variable: payment in wp-content/plugins/smartpay/resources/views/mail/payment-receipt/form-payment.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractArray' not found in wp-content/plugins/smartpay/vendor/ramsey/collection/src/Map/AbstractMap.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\umberConverterInterface' not found in wp-content/plugins/smartpay/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/smartpay/vendor/ramsey/uuid/src/Guid/GuidBuilder.php:32
- > PHP Fatal error
Uncaught Error: Class 'SmartPay\\Framework\\Database\\Eloquent\\Relation\\HasOneOrMany' not found in wp-content/plugins/smartpay/framework/Database/Eloquent/Relation/HasMany.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (30 tag instead of maximum 10)
smartpay/smartpay.php 85% from 13 tests
The entry point to "Download Manager and Payment Form WordPress Plugin - WP SmartPay" version 2.7.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("resources/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin34,428 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 407 | 8,090 | 18,382 | 32,799 |
Markdown | 14 | 320 | 0 | 823 |
JSON | 1 | 0 | 0 | 785 |
JavaScript | 8 | 0 | 8 | 15 |
CSS | 4 | 0 | 10 | 6 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 292)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 292.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 50 | |
Traits | 11 | |
Classes | 309 | |
▷ Abstract classes | 17 | 5.50% |
▷ Concrete classes | 292 | 94.50% |
▷ Final classes | 48 | 16.44% |
Methods | 2,610 | |
▷ Static methods | 258 | 9.89% |
▷ Public methods | 2,240 | 85.82% |
▷ Protected methods | 246 | 9.43% |
▷ Private methods | 124 | 4.75% |
Functions | 236 | |
▷ Named functions | 120 | 50.85% |
▷ Anonymous functions | 116 | 49.15% |
Constants | 237 | |
▷ Global constants | 9 | 3.80% |
▷ Class constants | 228 | 96.20% |
▷ Public constants | 202 | 88.60% |
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
23 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/integrations/paytm.png | 7.33KB | 2.85KB | ▼ 61.10% |
public/img/integrations/mailerlite.png | 7.86KB | 3.18KB | ▼ 59.50% |
public/img/integrations/mailchimp.png | 14.87KB | 6.60KB | ▼ 55.61% |
public/img/integrations/paddle.png | 5.77KB | 5.33KB | ▼ 7.65% |
public/img/mollie.png | 1.99KB | 1.45KB | ▼ 27.22% |