Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼11.71ms] Passed 4 tests
An overview of server-side resources used by Viet Nam Affiliate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.96 ▼1.90 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.11 ▲5.01 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.38 ▲9.40 |
Add New Post /wp-admin/post-new.php | 4.66 ▼1.23 | 44.37 ▼48.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.85 ▼1.18 |
Viet Nam Affiliate /wp-admin/options-general.php?page=viet-nam-affiliate/viet-nam-affiliate.php | 3.26 | 31.61 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 41 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tdc_link |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
TDC_AFFILIATE |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Viet Nam Affiliate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.29 ▼1.07 | 1.79 ▲0.23 | 44.81 ▼1.01 |
Dashboard /wp-admin | 2,211 ▲23 | 5.16 ▲0.27 | 110.28 ▲4.82 | 44.16 ▲4.82 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.34 ▲0.28 | 38.35 ▼2.05 | 32.01 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.30 ▲0.24 | 659.91 ▲68.32 | 56.92 ▲1.01 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.49 ▲0.17 | 102.95 ▲3.83 | 42.64 ▼1.19 |
Viet Nam Affiliate /wp-admin/options-general.php?page=viet-nam-affiliate/viet-nam-affiliate.php | 890 | 2.05 | 27.37 | 46.03 |
Viet Nam Affiliate Report /wp-admin/viet-nam-afffiliate-report.php | 26 | 0.44 | 0.09 | 14.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_tdc_link
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- TDC_AFFILIATE
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/viet-nam-affiliate/core/function/admin.php
- > /wp-content/plugins/viet-nam-affiliate/viet-nam-affiliate.php
- > /wp-content/plugins/viet-nam-affiliate/core/config/constant.php
- > /wp-content/plugins/viet-nam-affiliate/core/TDC.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/viet-nam-afffiliate-report.php
- > Network (severe)
wp-admin/viet-nam-afffiliate-report.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: affiliate, mmo, viet nam affiliate, affiliate tools
viet-nam-affiliate/viet-nam-affiliate.php 92% from 13 tests
"Viet Nam Affiliate" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,114 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 2,119 | 7,155 | 7,333 |
CSS | 13 | 34 | 80 | 1,449 |
PHP | 5 | 90 | 129 | 306 |
Markdown | 1 | 18 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 3 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 50.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/DataTables-1.10.18/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/css/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/css/DataTables-1.10.18/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/css/DataTables-1.10.18/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/css/DataTables-1.10.18/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |