Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.06ms] Passed 4 tests
A check of server-side resources used by LAI SUAT NGAN HANG BY MECODE
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.86 ▲1.52 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.13 ▼3.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.25 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.12 ▼5.50 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.03 ▲0.60 |
Lãi Suất Ngân Hàng /wp-admin/options-general.php?page=lsnh | 3.23 | 33.67 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/lai-suat-ngan-hang-by-mecode/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
lsnh_settings |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by LAI SUAT NGAN HANG BY MECODE
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.73 ▲0.22 | 1.75 ▼0.31 | 45.32 ▲2.34 |
Dashboard /wp-admin | 2,225 ▲22 | 4.87 ▼0.08 | 109.07 ▼3.86 | 42.88 ▲3.57 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.04 | 39.46 ▼0.41 | 36.76 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 18.37 ▼4.77 | 605.32 ▼3.36 | 74.20 ▲20.52 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.01 | 94.52 ▼15.16 | 47.57 ▲0.05 |
Lãi Suất Ngân Hàng /wp-admin/options-general.php?page=lsnh | 811 | 2.02 | 22.56 | 43.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- lsnh_settings
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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 following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lai-suat-ngan-hang-by-mecode/backend.php:3
- > PHP Warning
Use of undefined constant LSNH_PLUGIN_URL - assumed 'LSNH_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 114
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lai-suat-ngan-hang-by-mecode/backend.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 112
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were not plugin tags detected
lai-suat-ngan-hang-by-mecode/lai-suat-ngan-hang.php 77% from 13 tests
The entry point to "LAI SUAT NGAN HANG BY MECODE" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lai-suat-ngan-hang-by-mecode.php" instead of "lai-suat-ngan-hang.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,037 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 85 | 2 | 563 |
PHP | 3 | 77 | 19 | 301 |
JavaScript | 2 | 48 | 7 | 173 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/home.png | 8.89KB | 5.04KB | ▼ 43.29% |