Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼57.23ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce imoje
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.41 ▼35.53 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.32 ▼56.12 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.93 ▼37.91 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.94 ▼99.36 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.42 ▼28.30 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce imoje
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.32 ▼0.06 | 1.82 ▲0.14 | 36.21 ▼7.85 |
Dashboard /wp-admin | 2,195 ▲20 | 5.62 ▲0.03 | 87.69 ▼27.51 | 39.17 ▼11.84 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.07 | 37.60 ▼1.22 | 38.33 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 23.45 ▲0.41 | 659.01 ▼57.69 | 58.58 ▲3.39 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.01 | 96.75 ▼6.45 | 43.28 ▲1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/imoje/woocommerce-imoje.php+22
include_once(wp-content/plugins/imoje/includes/libs/Payment-core/vendor/autoload.php): failed to open stream: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php:22
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Uri\\Retrievers\\AbstractRetriever' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php:19
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php:15
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Exception\\InvalidArgumentException' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/imoje/includes/class.WCGatewayImoje.php:9
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\BaseConstraint' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/imoje/includes/class.WCGatewayImojePbl.php:9
- > PHP Fatal error
Uncaught Error: Interface 'JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' not found in wp-content/plugins/imoje/includes/libs/payment-core/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php:5
- > 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)
No browser issues were found
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
8 plugin tags: payment gateway, payments, payment, checkout, online payments...
imoje/woocommerce-imoje.php 92% from 13 tests
The main file in "WooCommerce imoje" v. 3.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("imoje.php" instead of "woocommerce-imoje.php")
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 fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/imoje/includes/libs/payment-core/vendor/bin/validate-json.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,706 | 2,822 | 6,858 |
JSON | 5 | 31 | 0 | 467 |
PO File | 1 | 100 | 200 | 251 |
Markdown | 2 | 73 | 0 | 249 |
SVG | 2 | 0 | 1 | 55 |
DOS Batch | 1 | 0 | 0 | 5 |
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.51 |
Average class complexity | 13.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 329 | |
▷ Static methods | 76 | 23.10% |
▷ Public methods | 255 | 77.51% |
▷ Protected methods | 40 | 12.16% |
▷ Private methods | 34 | 10.33% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
Constants | 86 | |
▷ Global constants | 2 | 2.33% |
▷ Class constants | 84 | 97.67% |
▷ Public constants | 84 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/pbl.png | 0.66KB | 0.97KB | 0.00% |
resources/images/paylater.png | 4.69KB | 2.25KB | ▼ 52.12% |
resources/images/cards.png | 2.15KB | 1.70KB | ▼ 20.84% |