Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.64ms] Passed 4 tests
A check of server-side resources used by Thanh Toán qua cổng thanh toán 9PAY
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.48 ▲1.73 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.02 ▼5.08 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.37 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.66 ▼20.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.16 ▲3.72 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Thanh Toán qua cổng thanh toán 9PAY: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲61 | 13.14 ▼1.23 | 1.07 ▼0.67 | 46.25 ▲4.17 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.04 | 110.78 ▲6.50 | 41.38 ▼1.62 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.01 | 40.22 ▲3.32 | 39.63 ▲6.72 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 22.37 ▼0.86 | 644.18 ▼25.59 | 65.33 ▲6.73 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.36 ▲0.21 | 97.10 ▼17.14 | 42.85 ▼5.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'NinePayConstance' not found in wp-content/plugins/9pay-gateway/includes/gateways/core/lang.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Đối tác Việt Nam: https://storage.googleapis.com/npay/assets/static/v4/landing/landing_update/dt1.png), #2 (Đối tác Quốc tế: https://storage.googleapis.com/npay/assets/static/v4/landing/landing_update/dt3.png)
9pay-gateway/mc-ninepay.php 85% from 13 tests
The main PHP script in "Thanh Toán qua cổng thanh toán 9PAY" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("9pay-gateway.php" instead of "mc-ninepay.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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,764 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 326 | 1,006 | 1,553 |
CSS | 2 | 16 | 1 | 111 |
JavaScript | 2 | 15 | 12 | 100 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 4 | 6.78% |
▷ Public methods | 40 | 67.80% |
▷ Protected methods | 4 | 6.78% |
▷ Private methods | 15 | 25.42% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 15 | |
▷ Global constants | 2 | 13.33% |
▷ Class constants | 13 | 86.67% |
▷ Public constants | 13 | 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
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 |
public/images/logo.png | 2.25KB | 1.79KB | ▼ 20.12% |