84% live-flight-radar

Code Review | Live Flight Radar

WordPress plugin Live Flight Radar scored84%from 54 tests.

About plugin

  • Plugin page: live-flight-radar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Mar 14, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: lucia.intelisano (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,092 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Live Flight Radar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.50 ▲5.76
Dashboard /wp-admin3.31 ▼0.0351.46 ▼16.08
Posts /wp-admin/edit.php3.36 ▲0.0049.99 ▼1.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.39 ▼14.90
Media Library /wp-admin/upload.php3.23 ▲0.0037.63 ▲2.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Live Flight Radar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.64 ▼0.969.79 ▲8.1235.98 ▼7.15
Dashboard /wp-admin2,189 ▲255.56 ▼0.0186.80 ▼16.9339.09 ▼5.72
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0539.01 ▲3.2037.95 ▼0.25
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▲2.13681.38 ▼24.6849.58 ▼14.60
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.1297.77 ▼9.5645.58 ▼1.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'status' of non-object in wp-content/plugins/live-flight-radar/getIframe.php on line 46
    • > PHP Warning
      simplexml_load_file(http://api.flight.org/airports/xml//airport.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found\r in wp-content/plugins/live-flight-radar/getIframe.php on line 45
    • > PHP Warning
      simplexml_load_file(): I/O warning : failed to load external entity "http://api.flight.org/airports/xml//airport.xml" in wp-content/plugins/live-flight-radar/getIframe.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-flight-radar/liveflightradar.php:20
    • > PHP Fatal error
      Uncaught Error: Call to a member function attributes() on null in wp-content/plugins/live-flight-radar/getIframe.php:46
    • > PHP Notice
      Undefined index: term in wp-content/plugins/live-flight-radar/getIframe.php on line 44
    • > PHP Notice
      Undefined index: term in wp-content/plugins/live-flight-radar/getCode.php on line 54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: airplane, flight, radar, aircraft, shortcode...

live-flight-radar/liveflightradar.php 92% from 13 tests

The main PHP file in "Live Flight Radar" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("live-flight-radar.php" instead of "liveflightradar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,349 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS133501,142
PHP37422177
JavaScript19030

PHP code Passed 2 tests

This is a short overview 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.15
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin