Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼7.50ms] Passed 4 tests
This is a short check of server-side resources used by EasyTransac pour WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 43.47 ▼1.17 |
Dashboard /wp-admin | 3.55 ▲0.21 | 49.29 ▼15.64 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 49.91 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 89.33 ▼13.20 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 39.16 ▼0.00 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for EasyTransac pour WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.58 ▲0.44 | 1.83 ▲0.31 | 44.20 ▼2.45 |
Dashboard /wp-admin | 2,195 ▲15 | 5.48 ▼0.14 | 85.97 ▼7.82 | 39.28 ▲1.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.01 | 36.95 ▼5.37 | 31.66 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.14 ▲4.61 | 693.77 ▲79.94 | 63.60 ▼3.22 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.02 | 96.59 ▼2.84 | 43.25 ▲1.10 |
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
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 | 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
- 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/PaymentPage.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Entities\\Entity' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Entities/DirectTransaction.php:9
- > PHP Fatal error
Uncaught Error: Interface 'EasyTransac\\Core\\ICaller' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Core/FgcCaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/CreditCardInfo.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/AddCreditCard.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/MakeP2PTransfer.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/OperationsList.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/FindUser.php:12
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Entities\\Entity' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Entities/CancellationInfos.php:9
- > PHP Fatal error
Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/PaymentPageCancellation.php:12
- > 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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: moyen de paiement, checkout, encaissement, payment pro, bezahlsystem...
easytransac/easytransac_woocommerce.php 69% from 13 tests
The primary PHP file in "EasyTransac pour WooCommerce" version 2.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("easytransac.php" instead of "easytransac_woocommerce.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "5.6.0")
- Description: The description should be shorter than 140 characters (currently 362 characters long)
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
Success! There were no dangerous files found in this plugin6,173 lines of code in 109 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,669 | 1,925 | 5,697 |
PO File | 1 | 35 | 50 | 124 |
Markdown | 1 | 37 | 0 | 110 |
JSON | 3 | 0 | 0 | 90 |
YAML | 5 | 22 | 7 | 84 |
JavaScript | 1 | 19 | 19 | 59 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 2 | 2.27% |
▷ Concrete classes | 86 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 681 | |
▷ Static methods | 24 | 3.52% |
▷ Public methods | 667 | 97.94% |
▷ Protected methods | 8 | 1.17% |
▷ Private methods | 6 | 0.88% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icon.png | 8.42KB | 3.77KB | ▼ 55.21% |