83% ozontravelwidget

Code Review | OzonTravel: Flights,Hotels,Railways,Insurance

WordPress plugin OzonTravel: Flights,Hotels,Railways,Insurance scored83%from 54 tests.

About plugin

  • Plugin page: ozontravelwidget
  • Plugin version: 0.1a...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: ozontravel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,692 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.86ms] Passed 4 tests

An overview of server-side resources used by OzonTravel: Flights,Hotels,Railways,Insurance
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.57 ▼3.03
Dashboard /wp-admin3.31 ▲0.0160.70 ▲5.04
Posts /wp-admin/edit.php3.36 ▲0.0151.54 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.16 ▲2.56
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼3.47

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for OzonTravel: Flights,Hotels,Railways,Insurance
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.091.73 ▼0.0344.73 ▲4.73
Dashboard /wp-admin2,198 ▲215.65 ▲0.0494.79 ▲8.3742.55 ▲0.83
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0335.32 ▼5.2634.45 ▼1.61
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▼0.43595.87 ▼5.7855.45 ▼7.35
Media Library /wp-admin/upload.php1,400 ▼04.10 ▼0.11103.76 ▼2.4043.18 ▼3.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_true_top_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ozontravelwidget/OzonTravelWidget.php:12

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)
Everything seems fine, but this is not an exhaustive test


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 your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

ozontravelwidget/OzonTravelWidget.php 85% from 13 tests

The primary PHP file in "OzonTravel: Flights,Hotels,Railways,Insurance" version 0.1a... is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ozontravelwidget.php" instead of "OzonTravelWidget.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "0.1a...")

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
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin