Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼15.39ms] Passed 4 tests
Server-side resources used by WH Kartra Billing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.05 ▼1.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 54.24 ▼0.38 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 55.47 ▼2.18 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.65 | 38.46 ▼57.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.44 ▲5.99 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WH Kartra Billing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.88 ▼0.91 | 8.12 ▲5.81 | 48.12 ▲4.47 |
Dashboard /wp-admin | 2,215 ▲24 | 5.80 ▲0.75 | 105.61 ▼36.21 | 37.33 ▼18.55 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.05 ▲0.03 | 37.47 ▼0.27 | 34.46 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.21 ▼0.11 | 609.79 ▼18.59 | 57.98 ▼3.52 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.30 ▲0.10 | 101.05 ▼5.71 | 46.27 ▼6.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wh-kartra-billing/public/partials/wh-kartra-billing-public-display.php
- > /wp-content/plugins/wh-kartra-billing/admin/partials/wh-kartra-billing-admin-display.php
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Claim' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Claim/Basic.php:20
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\BaseSigner' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Signer/Hmac.php:16
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Claim\\Basic' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Claim/GreaterOrEqualsTo.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Validator' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Validation/Validator.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Exception' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Signer/Ecdsa/ConversionFailed.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Validation\\Constraint' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Validation/Constraint/ValidAt.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Exception' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Encoding/CannotEncodeContent.php:9
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha256.php:18
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\OpenSSL' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Signer/Ecdsa.php:20
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/wh-kartra-billing/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha384.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("www.waashero.com")
wh-kartra-billing/wh-kartra-billing.php Passed 13 tests
The entry point to "WH Kartra Billing" version 1.0.0 is a PHP file that has certain tags in its header comment area
43 characters long description:
Sync kartra billing actions with WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,808 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,306 | 2,773 | 4,281 |
CSS | 2 | 23 | 11 | 252 |
JSON | 3 | 2 | 0 | 161 |
Markdown | 1 | 32 | 0 | 60 |
JavaScript | 4 | 12 | 64 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 5 | 6.94% |
▷ Concrete classes | 67 | 93.06% |
▷ Final classes | 29 | 43.28% |
Methods | 335 | |
▷ Static methods | 59 | 17.61% |
▷ Public methods | 291 | 86.87% |
▷ Protected methods | 5 | 1.49% |
▷ Private methods | 39 | 11.64% |
Functions | 20 | |
▷ Named functions | 14 | 70.00% |
▷ Anonymous functions | 6 | 30.00% |
Constants | 25 | |
▷ Global constants | 1 | 4.00% |
▷ Class constants | 24 | 96.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin