Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.95ms] Passed 4 tests
A check of server-side resources used by WaafiPay Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.94 ▼2.37 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.95 ▼7.50 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 43.03 ▼5.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.21 ▼16.45 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.16 ▲5.03 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wc_gateway_waafi_bootstrap_warning_message |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WaafiPay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.24 ▼1.06 | 1.68 ▼0.08 | 41.94 ▼5.91 |
Dashboard /wp-admin | 2,215 ▲24 | 5.79 ▲0.90 | 102.56 ▼0.09 | 40.60 ▼4.69 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.03 ▲0.03 | 33.82 ▼2.11 | 32.73 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.02 ▼0.20 | 664.00 ▲52.47 | 57.27 ▲1.14 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.22 ▼0.03 | 110.82 ▲13.79 | 48.66 ▲5.92 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- wc_gateway_waafi_bootstrap_warning_message
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Install & Activate Waafipay), #2 (Activate payment gateway in woocommerce), #3 (Add configuration)
waafipay-payment-gateway-for-woocommerce/wc_waafipay.php 92% from 13 tests
The principal PHP file in "WaafiPay Payment Gateway" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("waafipay-payment-gateway-for-woocommerce.php" instead of "wc_waafipay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected688 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 152 | 129 | 687 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
There are no PNG files in this plugin