Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.03ms] Passed 4 tests
This is a short check of server-side resources used by Tỷ Giá Ngoại Tệ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 40.19 ▲18.58 |
Dashboard /wp-admin | 3.08 ▲0.03 | 51.62 ▲4.74 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 54.49 ▲9.33 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 88.74 ▼574.21 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 28.24 ▼3.99 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wpvn_ty_gia_ngoai_te_widget |
Browser metrics Passed 4 tests
Tỷ Giá Ngoại Tệ: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.97 ▲0.28 | 9.69 ▼0.52 | 50.78 ▲0.84 |
Dashboard /wp-admin | 2,986 ▲52 | 6.10 ▲0.14 | 157.09 ▲12.83 | 134.99 ▲24.16 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▲0.01 | 78.29 ▲11.36 | 96.94 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,500 ▼0 | 18.57 ▼0.20 | 355.41 ▼15.70 | 105.57 ▼0.71 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▼0.02 | 146.74 ▼0.48 | 119.18 ▼12.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_wpvn_ty_gia_ngoai_te_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ty-gia-ngoai-te/ty-gia-ngoai-te.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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 need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== ty-gia-ngoai-te ===
)
ty-gia-ngoai-te/ty-gia-ngoai-te.php Passed 13 tests
The main file in "Tỷ Giá Ngoại Tệ" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Widget tỷ giá ngoại tệ by wpvn.info
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
Success! There were no dangerous files found in this plugin91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 9 | 91 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin