Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.81MB] [CPU: ▲9.34ms] Passed 4 tests
Server-side resources used by Docket Connector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.25 ▲1.79 | 52.68 ▲16.35 |
Dashboard /wp-admin | 5.12 ▲1.81 | 60.97 ▲13.26 |
Posts /wp-admin/edit.php | 5.23 ▲1.87 | 57.89 ▲8.58 |
Add New Post /wp-admin/post-new.php | 7.70 ▲1.81 | 101.84 ▲1.28 |
Media Library /wp-admin/upload.php | 5.04 ▲1.81 | 47.66 ▲14.22 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 5.14 | 41.75 |
Server storage [IO: ▲6.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 694 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Docket Connector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.74 ▲0.37 | 1.97 ▲0.28 | 44.40 ▼0.69 |
Dashboard /wp-admin | 2,234 ▲43 | 5.81 ▲0.94 | 101.24 ▲0.23 | 43.60 ▼1.07 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.08 ▲0.04 | 40.19 ▼2.99 | 34.20 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 18.30 ▼4.92 | 625.21 ▼6.12 | 65.10 ▲19.86 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.32 ▲0.14 | 96.73 ▼6.55 | 44.50 ▼0.59 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 969 | 2.09 | 25.14 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 102× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Arrayy\\Collection\\Collection' not found in wp-content/plugins/docket-connector/vendor/voku/arrayy/src/Type/ScalarCollection.php:12
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/docket-connector/vendor/phpdocumentor/type-resolver/src/Types/Callable_.php:20
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Reference' not found in wp-content/plugins/docket-connector/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\TagWithType' not found in wp-content/plugins/docket-connector/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php:25
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\TagWithType' not found in wp-content/plugins/docket-connector/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php:25
- > PHP Fatal error
Uncaught Error: Class 'Arrayy\\Collection\\Collection' not found in wp-content/plugins/docket-connector/vendor/voku/arrayy/src/Type/InstancesCollection.php:15
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/docket-connector/vendor/defuse/php-encryption/src/Exception/EnvironmentIsBrokenException.php:5
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\AbstractList' not found in wp-content/plugins/docket-connector/vendor/phpdocumentor/type-resolver/src/Types/Collection.php:29
- > PHP Fatal error
require_once(): Failed opening required 'lib/byte_safe_strings.php' (include_path='.:/usr/share/php') in wp-content/plugins/docket-connector/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Cannot declare class DivisionByZeroError, because the name is already in use in wp-content/plugins/docket-connector/vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gravityforms, gravity forms, ecommerce, e-commerce
docket-connector/docket-connector.php Passed 13 tests
The primary PHP file in "Docket Connector" version 1.1.2 is used by WordPress to initiate all plugin functionality
62 characters long description:
Create invoices within your Docket account from Gravity Forms.
Code Analysis 95% from 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
There were no executable files found in this plugin120,335 lines of code in 579 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 470 | 7,427 | 27,101 | 95,110 |
Markdown | 49 | 5,751 | 5 | 15,376 |
PO File | 25 | 2,133 | 2,913 | 7,108 |
JSON | 26 | 0 | 0 | 2,573 |
XML | 4 | 11 | 12 | 72 |
YAML | 1 | 6 | 0 | 48 |
make | 1 | 9 | 4 | 24 |
SVG | 1 | 0 | 1 | 16 |
JavaScript | 1 | 1 | 6 | 5 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,466)
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 26.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,466.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 17 | |
Traits | 0 | |
Classes | 172 | |
▷ Abstract classes | 6 | 3.49% |
▷ Concrete classes | 166 | 96.51% |
▷ Final classes | 82 | 49.40% |
Methods | 2,042 | |
▷ Static methods | 888 | 43.49% |
▷ Public methods | 1,804 | 88.34% |
▷ Protected methods | 57 | 2.79% |
▷ Private methods | 181 | 8.86% |
Functions | 200 | |
▷ Named functions | 106 | 53.00% |
▷ Anonymous functions | 94 | 47.00% |
Constants | 236 | |
▷ Global constants | 53 | 22.46% |
▷ Class constants | 183 | 77.54% |
▷ Public constants | 183 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin