Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/plationline/inc/core/class-activator.php+35
Use of undefined constant WOOCOMMERCE_VERSION - assumed 'WOOCOMMERCE_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.05ms] Passed 4 tests
A check of server-side resources used by PlatiOnline Payments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.18 ▼1.65 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.92 ▲0.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.18 ▼4.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.20 ▼24.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.55 ▼1.72 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PlatiOnline Payments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.28 ▼1.16 | 1.91 ▲0.15 | 46.48 ▲5.68 |
Dashboard /wp-admin | 2,206 ▲17 | 4.87 ▼0.07 | 97.21 ▼14.31 | 37.43 ▼0.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 32.11 ▼7.32 | 32.65 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.34 ▲0.00 | 579.15 ▼25.17 | 45.78 ▼6.63 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.14 ▼0.12 | 95.95 ▼4.25 | 40.26 ▼3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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)
Even though no errors were found, 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
The following issues need your attention
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-put.php:12
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-patch.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/plationline/inc/core/class-wc-plationline-woocommerce-subscriptions.php:15
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-options.php:12
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-get.php:12
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-delete.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/plationline/inc/admin/views/html-plationline-admin-display.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/plationline/inc/core/class-wc-plationline.php:12
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\phpseclib\\Crypt\\Base' not found in wp-content/plugins/plationline/inc/libraries/phpseclib/crypt/class-twofish.php:48
- > PHP Fatal error
Uncaught Error: Class 'PlatiOnlinePO6\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/plationline/inc/libraries/sylouuu/curl/method/class-head.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: cart, e-commerce, plationline, ecommerce, shop...
plationline/plationline.php 92% from 13 tests
Analyzing the main PHP file in "PlatiOnline Payments" version 6.2.12
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.0.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,025 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,755 | 5,054 | 10,801 |
PO File | 2 | 299 | 497 | 762 |
JavaScript | 3 | 8 | 9 | 330 |
CSS | 4 | 21 | 8 | 130 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 51.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 401.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 382 | |
▷ Static methods | 26 | 6.81% |
▷ Public methods | 355 | 92.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 7.07% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 67 | |
▷ Global constants | 20 | 29.85% |
▷ Class constants | 47 | 70.15% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-wallet.png | 1.20KB | 0.67KB | ▼ 43.90% |
assets/images/logo.png | 1.62KB | 1.13KB | ▼ 30.05% |