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.09MB] [CPU: ▼5.78ms] Passed 4 tests
A check of server-side resources used by Travel Visa Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.29 ▼1.00 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.69 ▼6.94 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.15 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 81.86 ▼11.49 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 35.19 ▲3.58 |
Travel Visa Widget /wp-admin/options-general.php?page=vmtvw_settings | 3.29 | 32.80 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_vmtvw_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Travel Visa Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.25 ▼0.33 | 1.74 ▼0.14 | 41.49 ▼4.17 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.00 | 95.27 ▼2.47 | 43.41 ▼6.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.05 | 39.71 ▲2.07 | 37.68 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.89 ▼0.54 | 636.30 ▲8.21 | 58.16 ▲9.33 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.17 ▼0.11 | 102.37 ▲2.12 | 44.14 ▲2.25 |
Travel Visa Widget /wp-admin/options-general.php?page=vmtvw_settings | 830 | 2.00 | 25.46 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_vmtvw_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 29 tag instead of maximum 10
travel-visa-widget/travel-visa-widget.php 85% from 13 tests
The principal PHP file in "Travel Visa Widget" v. 0.4.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,029 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 127 | 308 | 464 |
Sass | 1 | 2 | 2 | 198 |
JavaScript | 3 | 30 | 47 | 121 |
PO File | 1 | 37 | 39 | 115 |
SVG | 4 | 0 | 2 | 106 |
JSON | 1 | 0 | 0 | 24 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/visamundi-logo.png | 8.25KB | 6.43KB | ▼ 22.06% |
src/images/visamundi-logo.png | 9.77KB | 6.46KB | ▼ 33.90% |