Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.92ms] Passed 4 tests
Server-side resources used by GetPaid > Wallet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.70 ▼8.67 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.44 ▼5.15 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.97 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.19 ▼12.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.05 ▲7.62 |
Install Plugins /wp-admin/plugins.php?page=wpinv-wallet-install-plugins | 3.35 | 34.43 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 227 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GetPaid > Wallet
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.30 ▼1.07 | 1.65 ▼0.15 | 39.89 ▼4.37 |
Dashboard /wp-admin | 2,234 ▲43 | 4.85 ▼0.09 | 116.68 ▲1.54 | 43.26 ▼1.98 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.04 ▲0.03 | 35.90 ▼1.34 | 37.51 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.09 ▲0.16 | 700.60 ▲24.81 | 52.65 ▼9.25 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.29 ▲0.08 | 103.68 ▼3.52 | 49.70 ▲3.66 |
Install Plugins /wp-admin/plugins.php?page=wpinv-wallet-install-plugins | 962 | 2.06 | 25.99 | 29.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 149× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\BankAccount' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php:16
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php:18
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ItemList.php:19
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutSenderBatchHeader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'PayPal\\Handler\\IPayPalHandler' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php:20
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccount.php:20
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/getpaid-wallet/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExternalFunding.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: payment, wallet, invoicing, getpaid
getpaid-wallet/wpinv-wallet.php 92% from 13 tests
The main PHP script in "GetPaid > Wallet" version 2.0.5 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("getpaid-wallet.php" instead of "wpinv-wallet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected17,388 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 3,887 | 17,513 | 16,488 |
PO File | 1 | 171 | 193 | 461 |
Markdown | 2 | 53 | 0 | 274 |
JSON | 1 | 0 | 0 | 116 |
XML | 1 | 4 | 0 | 32 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 189 | |
▷ Abstract classes | 3 | 1.59% |
▷ Concrete classes | 186 | 98.41% |
▷ Final classes | 0 | 0.00% |
Methods | 2,253 | |
▷ Static methods | 88 | 3.91% |
▷ Public methods | 2,206 | 97.91% |
▷ Protected methods | 27 | 1.20% |
▷ Private methods | 20 | 0.89% |
Functions | 23 | |
▷ Named functions | 19 | 82.61% |
▷ Anonymous functions | 4 | 17.39% |
Constants | 26 | |
▷ Global constants | 4 | 15.38% |
▷ Class constants | 22 | 84.62% |
▷ Public constants | 22 | 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
6 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-128x128.png | 3.26KB | 2.39KB | ▼ 26.74% |
.wordpress-org/banner-1544x500.png | 122.72KB | 47.08KB | ▼ 61.64% |
.wordpress-org/screenshot-2.png | 23.34KB | 8.46KB | ▼ 63.76% |
.wordpress-org/banner-772x250.png | 48.36KB | 19.59KB | ▼ 59.50% |
.wordpress-org/icon-256x256.png | 5.81KB | 3.47KB | ▼ 40.22% |