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.03MB] [CPU: ▼5.83ms] Passed 4 tests
Analyzing server-side resources used by Woo Viet - WooCommerce for Vietnam
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.83 ▼2.42 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.11 ▲2.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.67 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.94 ▼21.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.46 ▲3.35 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Viet - WooCommerce for Vietnam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.45 ▼0.93 | 1.79 ▲0.07 | 38.42 ▼1.22 |
Dashboard /wp-admin | 2,202 ▲11 | 5.83 ▲0.96 | 100.80 ▼5.81 | 41.99 ▼0.36 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.00 | 35.35 ▼4.27 | 32.28 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.60 ▲0.28 | 664.89 ▲66.03 | 53.29 ▲3.99 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.25 ▼0.04 | 96.05 ▼3.40 | 40.03 ▼6.04 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
woo-viet/woo-viet.php 85% from 13 tests
The entry point to "Woo Viet - WooCommerce for Vietnam" version 1.5.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,753 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 354 | 590 | 3,504 |
JavaScript | 2 | 34 | 9 | 151 |
CSS | 1 | 11 | 0 | 49 |
Markdown | 1 | 28 | 0 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 3 | 3.90% |
▷ Public methods | 75 | 97.40% |
▷ Protected methods | 2 | 2.60% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/wooviet_onepay_international.png | 13.59KB | 13.56KB | 0.20% |
assets/wooviet_onepay_domestic.png | 21.36KB | 22.10KB | 0.00% |