Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.48ms] Passed 4 tests
This is a short check of server-side resources used by White Payments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.16 ▼5.01 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.92 ▼4.46 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.33 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.06 ▼9.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.52 ▼0.69 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for White Payments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.16 ▼1.24 | 1.70 ▼0.28 | 39.13 ▼7.63 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.94 | 96.10 ▼24.60 | 37.28 ▼10.97 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.03 ▼0.02 | 32.92 ▼2.24 | 31.77 ▼4.40 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.24 ▲0.08 | 662.73 ▲10.42 | 52.86 ▲1.90 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.06 | 95.76 ▼5.92 | 43.63 ▼2.52 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/white-payments/woocommerce-white.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/white-payments/vendor/white/white/tests/White_ExceptionsTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'White_Error' not found in wp-content/plugins/white-payments/vendor/white/white/src/White/Error/Request.php:2
- > PHP Fatal error
Uncaught Error: Class 'White_Error' not found in wp-content/plugins/white-payments/vendor/white/white/src/White/Error/Authentication.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/white-payments/vendor/white/white/tests/White_CustomerTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'White_Error' not found in wp-content/plugins/white-payments/vendor/white/white/src/White/Error/Banking.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/white-payments/vendor/white/white/tests/WhiteTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/white-payments/vendor/white/white/tests/White_ChargeTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/white-payments/vendor/white/white/tests/White_CardExceptionsTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'White_Error' not found in wp-content/plugins/white-payments/vendor/white/white/src/White/Error/Processing.php:2
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: white, whitepayments, middle east payments, payments, whitepaymentscom...
white-payments/woocommerce-white.php 85% from 13 tests
The principal PHP file in "White Payments" v. 2.0.12 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("white-payments.php" instead of "woocommerce-white.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/white-payments/vendor/white/white/src/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 199 | 425 | 1,051 |
Markdown | 1 | 37 | 0 | 76 |
JSON | 3 | 0 | 0 | 52 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 12 | 19.67% |
▷ Public methods | 60 | 98.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.64% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
white-power.png | 3.81KB | 2.07KB | ▼ 45.76% |
white-cards.png | 2.64KB | 1.63KB | ▼ 38.11% |