89% travel-visa-widget

Code Review | Travel Visa Widget

WordPress plugin Travel Visa Widget scored89%from 54 tests.

About plugin

  • Plugin page: travel-visa-widget
  • Plugin version: 0.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: May 23, 2023
  • Latest release: Nov 24, 2023
  • Number of updates: 13
  • Update frequency: every 14.5 days
  • Top authors: visamundi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /411 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0842.29 ▼1.00
Dashboard /wp-admin3.41 ▲0.1045.69 ▼6.94
Posts /wp-admin/edit.php3.52 ▲0.1646.15 ▼3.68
Add New Post /wp-admin/post-new.php5.99 ▲0.0981.86 ▼11.49
Media Library /wp-admin/upload.php3.33 ▲0.0935.19 ▲3.58
Travel Visa Widget /wp-admin/options-general.php?page=vmtvw_settings3.2932.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.25 ▼0.331.74 ▼0.1441.49 ▼4.17
Dashboard /wp-admin2,202 ▲255.62 ▲0.0095.27 ▼2.4743.41 ▼6.36
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0539.71 ▲2.0737.68 ▲1.08
Add New Post /wp-admin/post-new.php1,529 ▲322.89 ▼0.54636.30 ▲8.2158.16 ▲9.33
Media Library /wp-admin/upload.php1,407 ▲134.17 ▼0.11102.37 ▲2.1244.14 ▲2.25
Travel Visa Widget /wp-admin/options-general.php?page=vmtvw_settings8302.0025.4628.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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP16127308464
Sass122198
JavaScript33047121
PO File13739115
SVG402106
JSON10024
CSS1001

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 code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/visamundi-logo.png8.25KB6.43KB▼ 22.06%
src/images/visamundi-logo.png9.77KB6.46KB▼ 33.90%