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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼1.93ms] Passed 4 tests
Analyzing server-side resources used by Cardinity Payment Gateway for Easy Digital Downloads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 45.53 ▲2.30 |
Dashboard /wp-admin | 3.76 ▲0.46 | 53.22 ▼0.22 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 52.91 ▲4.89 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 89.68 ▼11.31 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.38 ▲1.53 |
Server storage [IO: ▲3.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 613 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Cardinity Payment Gateway for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.27 | 1.72 ▼0.78 | 45.91 ▼2.95 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.12 | 86.26 ▼12.82 | 39.52 ▼3.76 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.05 | 42.22 ▲5.79 | 36.27 ▲3.06 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 24.56 ▲1.33 | 641.34 ▼58.89 | 76.82 ▲22.68 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.06 | 101.45 ▼20.17 | 41.83 ▼5.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 336× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/cardinity/cardinity-sdk-php/spec/ClientSpec.php:13
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\Constraints\\AbstractComparisonValidator' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/symfony/validator/Constraints/NotEqualToValidator.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\Constraint' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/symfony/validator/Constraints/CardScheme.php:26
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\ConstraintValidator' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/symfony/validator/Constraints/ChoiceValidator.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Cardinity\\Method\\MethodInterface' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/cardinity/cardinity-sdk-php/src/Method/VoidPayment/Create.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\Constraint' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/symfony/validator/Constraints/NotNull.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Cardinity\\Method\\MethodInterface' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/cardinity/cardinity-sdk-php/src/Method/Settlement/Get.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Validator\\Constraints\\Existence' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/symfony/validator/Constraints/Required.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cardinity-gateway-for-easy-digital-downloads/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > 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 issues were found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Requires php: The plugin version is formatted incorrectly
cardinity-gateway-for-easy-digital-downloads/cardinity-gateway-for-easy-digital-downloads.php Passed 13 tests
The principal PHP file in "Cardinity Payment Gateway for Easy Digital Downloads" v. 2.0.6 is loaded by WordPress automatically on each request
44 characters long description:
Cardinity Gateway for Easy Digital Downloads
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin60,105 lines of code in 577 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 469 | 6,491 | 14,240 | 30,786 |
XML | 56 | 4 | 2 | 22,252 |
Markdown | 27 | 1,485 | 0 | 4,697 |
JSON | 19 | 0 | 0 | 2,150 |
XSD | 1 | 18 | 0 | 142 |
YAML | 3 | 10 | 0 | 53 |
reStructuredText | 1 | 32 | 60 | 18 |
INI | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 7.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 54 | |
Traits | 7 | |
Classes | 386 | |
▷ Abstract classes | 13 | 3.37% |
▷ Concrete classes | 373 | 96.63% |
▷ Final classes | 46 | 12.33% |
Methods | 2,092 | |
▷ Static methods | 223 | 10.66% |
▷ Public methods | 1,801 | 86.09% |
▷ Protected methods | 84 | 4.02% |
▷ Private methods | 207 | 9.89% |
Functions | 276 | |
▷ Named functions | 163 | 59.06% |
▷ Anonymous functions | 113 | 40.94% |
Constants | 317 | |
▷ Global constants | 9 | 2.84% |
▷ Class constants | 308 | 97.16% |
▷ Public constants | 273 | 88.64% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 34.66KB | 17.00KB | ▼ 50.94% |