Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼6.16ms] Passed 4 tests
A check of server-side resources used by Worldnet Payments Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 37.25 ▼13.83 |
Dashboard /wp-admin | 3.63 ▲0.33 | 48.54 ▼3.83 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 47.51 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.32 | 85.35 ▼6.81 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 37.46 ▼0.17 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
wc_worldnetpayments_version |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Worldnet Payments Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.03 ▼0.60 | 1.73 ▲0.07 | 38.29 ▼7.81 |
Dashboard /wp-admin | 2,201 ▲21 | 5.64 ▼0.03 | 93.97 ▲1.12 | 42.67 ▲1.16 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.05 | 40.50 ▲3.80 | 35.26 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.07 ▼0.26 | 635.73 ▼28.95 | 49.05 ▼7.38 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▼0.01 | 95.96 ▼4.37 | 42.22 ▼2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- wc_worldnetpayments_version
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/worldnet-payments-gateway-for-woocommerce/includes/worldnetpayments_gateway_xml_api.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: payment, woocommerce, gateway
worldnet-payments-gateway-for-woocommerce/worldnetpayments-gateway-for-woocommerce.php 85% from 13 tests
"Worldnet Payments Gateway for WooCommerce" version 2.7.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("worldnet-payments-gateway-for-woocommerce.php" instead of "worldnetpayments-gateway-for-woocommerce.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,863 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 994 | 851 | 4,683 |
JavaScript | 4 | 142 | 81 | 789 |
SVG | 10 | 5 | 10 | 391 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 212 | |
▷ Static methods | 12 | 5.66% |
▷ Public methods | 205 | 96.70% |
▷ Protected methods | 5 | 2.36% |
▷ Private methods | 2 | 0.94% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG files were detected