84% airport-transfers

Code Review | Airport Transfers

WordPress plugin Airport Transfers scored84%from 54 tests.

About plugin

  • Plugin page: airport-transfers
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2017
  • Latest release: Jan 3, 2023
  • Number of updates: 28
  • Update frequency: every 69.5 days
  • Top authors: nant82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.40ms] Passed 4 tests

Server-side resources used by Airport Transfers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.82 ▼1.08
Dashboard /wp-admin3.38 ▲0.0846.42 ▲2.02
Posts /wp-admin/edit.php3.43 ▲0.0746.77 ▼4.94
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.05 ▼9.59
Media Library /wp-admin/upload.php3.30 ▲0.0736.05 ▲2.60
Airport Transfers /wp-admin/options-general.php?page=ns-airport-transfers-settings3.2829.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
ns-airport-transfers-contact-phone
ns-airport-transfers-admin-email
ns-airport-transfers-time-format
ns-airport-transfers-country
ns-airport-transfers-resort
theysaidso_admin_options
ns-airport-transfers-contact-email
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Airport Transfers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲18814.18 ▼0.129.61 ▲7.8946.73 ▲7.82
Dashboard /wp-admin2,210 ▲224.86 ▼0.05104.54 ▼7.9741.31 ▲1.28
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0438.14 ▼4.2234.29 ▼2.35
Add New Post /wp-admin/post-new.php1,540 ▲723.17 ▲0.02620.48 ▲11.0056.01 ▲5.91
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.0093.89 ▼1.8246.91 ▲3.73
Airport Transfers /wp-admin/options-general.php?page=ns-airport-transfers-settings9312.0223.4428.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/airport-transfers/admin/views/settings-page.php
    • > /wp-content/plugins/airport-transfers/public/views/form.php
    • > /wp-content/plugins/airport-transfers/admin/class-airport-transfers-admin.php
    • > /wp-content/plugins/airport-transfers/index.php
    • > /wp-content/plugins/airport-transfers/airport-transfers.php
    • > /wp-content/plugins/airport-transfers/public/class-airport-transfers.php
    • > /wp-content/plugins/airport-transfers/public/views/modal-error.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: arrival, airport, departure, transfer

airport-transfers/airport-transfers.php 92% from 13 tests

The main PHP file in "Airport Transfers" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 detected2,899 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35982091,690
PHP89585527
SVG100288
PO File16469160
CSS3918122
JSON10053
Markdown135042
HTML24017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.50
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jquery-ui/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
assets/jquery-ui/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
assets/jquery-ui/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
assets/jquery-ui/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
assets/jquery-ui/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%