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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.27ms] Passed 4 tests
This is a short check of server-side resources used by Anhlinh Thuoc Lo Ban
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.76 ▼7.54 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.07 ▼2.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.85 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.36 ▼18.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.66 ▼3.52 |
Server storage [IO: ▲5.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Anhlinh Thuoc Lo Ban
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.16 ▼1.61 | 2.13 ▲0.45 | 43.37 ▲4.54 |
Dashboard /wp-admin | 2,203 ▲15 | 4.88 ▼1.02 | 111.66 ▲2.01 | 39.71 ▼6.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 41.06 ▼0.29 | 36.74 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.15 ▼4.95 | 597.73 ▼69.85 | 63.69 ▲7.48 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▲0.01 | 94.62 ▼10.49 | 41.53 ▼2.76 |
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 detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php
- 154× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 29
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 231
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 124
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 215
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 104
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 59
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 150
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 224
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 120
- > PHP Warning
Use of undefined constant ALTLB_URL - assumed 'ALTLB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/anhlinh-thuoc-lo-ban/views/index.php on line 156
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: anh linh thuoc lo ban, thuoc lo ban wordpress, thc l ban plugin
anhlinh-thuoc-lo-ban/anhlinh-thuoc-lo-ban.php 92% from 13 tests
The entry point to "Anhlinh Thuoc Lo Ban" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 plugin474 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 8 | 9 | 328 |
JavaScript | 2 | 15 | 1 | 146 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
150 PNG files occupy 5.22MB with 2.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/thuoc522-27.png | 41.21KB | 22.11KB | ▼ 46.33% |
views/images/thuoc429-31.png | 37.47KB | 20.81KB | ▼ 44.45% |
views/images/thuoc522-33.png | 40.79KB | 22.03KB | ▼ 46.00% |
views/images/thuoc388-19.png | 40.49KB | 22.02KB | ▼ 45.62% |
views/images/thuoc522-26.png | 41.30KB | 22.38KB | ▼ 45.82% |