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.01MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by Payment Integration Wompi
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.07 ▼7.94 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.43 ▼5.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.35 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.19 ▼7.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.26 ▲2.10 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Integration Wompi
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.19 ▼1.46 | 1.69 ▼0.57 | 40.64 ▼4.37 |
Dashboard /wp-admin | 2,212 ▲24 | 5.89 ▲0.98 | 106.09 ▲0.66 | 44.66 ▲5.40 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.98 ▼0.06 | 42.12 ▲6.07 | 36.10 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.16 ▲0.00 | 645.64 ▼50.08 | 53.29 ▲1.09 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.26 ▲0.03 | 98.60 ▼14.01 | 42.18 ▼6.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_enqueue_js() in wp-content/plugins/payment-integration-wompi/includes/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-integration-wompi/includes/class-gateway-wompi-wwp.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
payment-integration-wompi/payment-integration-wompi.php 92% from 13 tests
The entry point to "Payment Integration Wompi" version 2.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,012 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 27 | 13 | 2,709 |
PHP | 4 | 55 | 51 | 303 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 1 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected