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.08MB] [CPU: ▼0.79ms] Passed 4 tests
This is a short check of server-side resources used by Web Tỷ Giá
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.05 ▼1.08 |
Dashboard /wp-admin | 3.38 ▲0.08 | 54.62 ▼0.71 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.67 ▲7.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.73 ▼2.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.02 ▲0.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_ty_gia_vang_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Web Tỷ Giá
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.16 ▼0.19 | 2.05 ▼0.23 | 47.40 ▲3.14 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.03 | 89.80 ▼1.01 | 37.60 ▼5.90 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.06 | 38.33 ▲1.28 | 35.88 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.06 ▼0.11 | 682.76 ▼5.89 | 58.66 ▲5.46 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.18 ▼0.01 | 98.00 ▲1.40 | 44.32 ▲1.58 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_ty_gia_vang_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ty-gia-vang-ngoai-te/ty-gia-vang.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
ty-gia-vang-ngoai-te/ty-gia-vang.php 92% from 13 tests
The primary PHP file in "Web Tỷ Giá" version 2.0 is used by WordPress to initiate all plugin functionality
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 ("ty-gia-vang-ngoai-te.php" instead of "ty-gia-vang.php")
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
No dangerous file extensions were detected535 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 15 | 408 |
JavaScript | 1 | 30 | 9 | 127 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 18.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin