Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.00ms] Passed 4 tests
This is a short check of server-side resources used by MobCard Woo Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.30 ▼2.00 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.66 ▲0.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.56 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.68 ▼15.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.04 ▼2.11 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for MobCard Woo Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼0.85 | 1.92 ▼0.19 | 38.68 ▼5.94 |
Dashboard /wp-admin | 2,206 ▲18 | 5.10 ▲0.22 | 101.74 ▼3.47 | 43.42 ▲1.51 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.03 | 37.89 ▼4.22 | 36.20 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.54 ▲0.30 | 644.38 ▼43.90 | 51.13 ▼2.12 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.21 ▼0.01 | 101.01 ▼3.77 | 44.13 ▲1.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Mobilpay_Payment_Request_Abstract' not found in wp-content/plugins/mobcard-woo-payment-gateway/includes/request/class-mobilpay-card.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Backend: WooCommerce > Settings > Checkout), #2 (Frontend: Your website checkout page)
mobcard-woo-payment-gateway/mobcard-woo-payment-gateway.php 92% from 13 tests
This is the main PHP file of "MobCard Woo Payment Gateway" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 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
No dangerous file extensions were detected1,443 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 179 | 95 | 1,385 |
PO File | 1 | 23 | 27 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 28.88 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 5 | 7.94% |
▷ Public methods | 52 | 82.54% |
▷ Protected methods | 11 | 17.46% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 45 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 45 | 100.00% |
▷ Public constants | 45 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mobilpay.png | 4.89KB | 2.72KB | ▼ 44.41% |