89% oganro-flight-booking

Code Review | Oganro Flight Booking

WordPress plugin Oganro Flight Booking scored89%from 54 tests.

About plugin

  • Plugin page: oganro-flight-boo...
  • Plugin version: 1.00
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: Oganro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,079 total downloads

Benchmarks

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: ▼8.79ms] Passed 4 tests

An overview of server-side resources used by Oganro Flight Booking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.40 ▼3.62
Dashboard /wp-admin3.32 ▼0.0247.85 ▼17.39
Posts /wp-admin/edit.php3.38 ▲0.0243.52 ▼2.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.83 ▼11.98
Media Library /wp-admin/upload.php3.25 ▲0.0233.28 ▼0.46
Contact /wp-admin/admin.php?page=oganro-flight-booking/oganro-flight-booking.php/contact3.2129.32
Short Code /wp-admin/admin.php?page=oganro-flight-booking/oganro-flight-booking.php/shortcode3.2127.43

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Oganro Flight Booking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5513.68 ▼0.691.64 ▼0.3043.37 ▼3.24
Dashboard /wp-admin2,220 ▲295.83 ▲0.9198.57 ▼7.7182.49 ▲36.08
Posts /wp-admin/edit.php2,118 ▲262.02 ▼0.0236.07 ▼2.9337.88 ▲5.62
Add New Post /wp-admin/post-new.php1,547 ▲3323.18 ▲5.52725.40 ▲62.8346.84 ▼5.83
Media Library /wp-admin/upload.php1,414 ▲264.11 ▼0.05103.69 ▼4.3145.73 ▲2.63
Contact /wp-admin/admin.php?page=oganro-flight-booking/oganro-flight-booking.php/contact8392.0723.9034.88
Short Code /wp-admin/admin.php?page=oganro-flight-booking/oganro-flight-booking.php/shortcode8612.0824.7032.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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 require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

oganro-flight-booking/oganro-flight-booking.php 92% from 13 tests

The main file in "Oganro Flight Booking" v. 1.00 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.1" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected183 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13122104
CSS271249
JavaScript1111222
Markdown1508

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pic256.png46.04KB11.73KB▼ 74.51%
img/header_logo.png13.39KB4.48KB▼ 66.53%
img/Oganro.png6.96KB3.50KB▼ 49.71%
img/pic28.png2.46KB1.61KB▼ 34.59%
img/banner.png13.39KB4.48KB▼ 66.53%