Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/instajet/lib/rdplugin.php+190
Accessing static property InstaJet::$plugin_file as non static
Server metrics [RAM: ▼1.71MB] [CPU: ▼189.13ms] Passed 4 tests
Server-side resources used by Instajet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼0.92 | 6.02 ▼27.63 |
Dashboard /wp-admin | 1.94 ▼1.12 | 6.63 ▼34.38 |
Posts /wp-admin/edit.php | 1.94 ▼1.17 | 5.90 ▼41.64 |
Add New Post /wp-admin/post-new.php | 1.94 ▼3.50 | 6.36 ▼652.85 |
Media Library /wp-admin/upload.php | 1.94 ▼1.06 | 7.36 ▼22.78 |
Add New /wp-admin/post-new.php?post_type=aircraft | 1.94 | 7.04 |
Instajet /wp-admin/options-general.php?page=instajet_options | 1.94 | 5.64 |
Aircraft Types /wp-admin/edit-tags.php?taxonomy=aircrafttypes&post_type=aircraft | 1.94 | 5.55 |
Flight Requests /wp-admin/edit.php?post_type=flight-requests | 1.94 | 5.75 |
Add New /wp-admin/post-new.php?post_type=flight-requests | 1.94 | 6.85 |
Aircraft /wp-admin/edit.php?post_type=aircraft | 1.94 | 6.22 |
Statistics /wp-admin/edit.php?post_type=flight-requests&page=statistics | 1.94 | 6.50 |
Server storage [IO: ▲7.30MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 105 new files
Database: 2 new tables, 5 new options
New tables |
---|
wp_airports |
wp_legs |
New WordPress options |
---|
instajet_searchpagepage_id |
widget_editflightwidget |
instajet_db_version |
aircrafttypes_children |
instajet_flightstatuspage_id |
Browser metrics Passed 4 tests
An overview of browser requirements for Instajet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,000 ▲404 | 17.42 ▲1.85 | 23.18 ▲14.97 | 51.64 ▲2.17 |
Dashboard /wp-admin | 3,067 ▲134 | 5.98 ▲0.04 | 132.25 ▼21.49 | 124.12 ▲8.75 |
Posts /wp-admin/edit.php | 2,833 ▲94 | 2.71 ▲0.02 | 63.13 ▼2.55 | 90.12 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,565 ▲65 | 16.94 ▼1.87 | 341.05 ▼33.50 | 103.55 ▼4.32 |
Media Library /wp-admin/upload.php | 2,091 ▲284 | 5.59 ▲0.58 | 160.45 ▲13.04 | 117.74 ▼7.04 |
Add New /wp-admin/post-new.php?post_type=aircraft | 3,388 | 9.12 | 219.56 | 140.74 |
Instajet /wp-admin/options-general.php?page=instajet_options | 1,302 | 2.34 | 61.16 | 93.60 |
Aircraft Types /wp-admin/edit-tags.php?taxonomy=aircrafttypes&post_type=aircraft | 2,366 | 2.53 | 62.49 | 92.60 |
Flight Requests /wp-admin/edit.php?post_type=flight-requests | 1,570 | 2.65 | 60.86 | 80.42 |
Add New /wp-admin/post-new.php?post_type=flight-requests | 3,259 | 8.99 | 219.63 | 142.04 |
Aircraft /wp-admin/edit.php?post_type=aircraft | 3,504 | 2.75 | 73.36 | 95.44 |
Statistics /wp-admin/edit.php?post_type=flight-requests&page=statistics | 1,146 | 2.28 | 177.78 | 91.18 |
Uninstaller [IO: ▲0.42MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/instajet/lib/rdplugin.php+190
Accessing static property InstaJet::$plugin_file as non static
- The uninstall procedure failed, leaving 2 tables in the database
- wp_legs
- wp_airports
- This plugin does not fully uninstall, leaving 5 options in the database
- instajet_flightstatuspage_id
- instajet_db_version
- aircrafttypes_children
- instajet_searchpagepage_id
- widget_editflightwidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Notice in wp-content/plugins/instajet/lib/rdplugin.php+190
Accessing static property InstaJet::$plugin_file as non static
- 37 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Notice in wp-content/plugins/instajet/lib/admin/ij-admin.php+482
Accessing static property InstaJet::$plugin_url as non static
- 135 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Notice in wp-content/plugins/instajet/lib/rdplugin.php+287
Accessing static property InstaJet::$plugin_path as non static
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Deprecated in wp-content/plugins/instajet/lib/ij-widgets.php+11
Function create_function() is deprecated
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Notice in wp-content/plugins/instajet/lib/rdplugin/rdplugin-admin.php+111
Undefined index: instajet_license_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=flight-requests
- > Notice in wp-content/plugins/instajet/lib/admin/ij-admin.php+131
Undefined index: post_type
- > GET request to /wp-admin/options-general.php?page=instajet_options
- > Notice in wp-content/plugins/instajet/lib/rdplugin/rdplugin-admin.php+267
Undefined index: message
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=aircraft
- > Notice in wp-content/plugins/instajet/lib/admin/ij-admin.php+496
Undefined index: page
- > GET request to /wp-admin/post-new.php?post_type=flight-requests
- > Notice in wp-content/plugins/instajet/lib/admin/ij-admin.php+179
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=flight-requests
- > Warning in wp-content/plugins/instajet/lib/admin/ij-admin.php+179
Invalid argument supplied for foreach()
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=flight-requests&page=statistics
- > Notice in wp-content/plugins/instajet/instajet.php+510
Trying to access array offset on value of type bool
SRP 0% 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
Please take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/instajet/lib/rdplugin/fields/multiselect.php
- > /wp-content/plugins/instajet/lib/rdplugin/fields/readonly.php
- > /wp-content/plugins/instajet/lib/rdplugin/fields/textarea.php
- > /wp-content/plugins/instajet/lib/rdplugin/fields/hidden.php
- > /wp-content/plugins/instajet/lib/rdplugin/fields/text.php
- > /wp-content/plugins/instajet/lib/rdplugin/fields/select.php
- > /wp-content/plugins/instajet/lib/admin/.views/admin-settings.php
- > /wp-content/plugins/instajet/lib/admin/.views/admin-price-adjust.php
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/instajet/lib/rdplugin/fields/multiselect.php on line 1
- > PHP Notice
Undefined variable: value in wp-content/plugins/instajet/lib/rdplugin/fields/text.php on line 1
- > PHP Notice
Undefined variable: value in wp-content/plugins/instajet/lib/rdplugin/fields/readonly.php on line 1
- > PHP Notice
Undefined variable: options in wp-content/plugins/instajet/lib/rdplugin/fields/radio.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/instajet/lib/admin/.views/admin-general.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/instajet/templates/view.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function ij_admin_tabs() in wp-content/plugins/instajet/lib/admin/.views/admin-price-adjust.php:632
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/instajet/lib/rdplugin/fields/radio.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/instajet/lib/rdplugin/fields/multiselect.php on line 2
- > PHP Notice
Undefined variable: id in wp-content/plugins/instajet/lib/rdplugin/fields/hidden.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: flight search, marketing tool, lead generation, private jet, private jet search...
instajet/instajet.php Passed 13 tests
The primary PHP file in "Instajet" version 1.1.8 is used by WordPress to initiate all plugin functionality
67 characters long description:
A private jet charter booking and lead generation tool for brokers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin8,150 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,632 | 2,010 | 5,595 |
CSS | 10 | 339 | 97 | 2,318 |
JavaScript | 5 | 54 | 47 | 155 |
SVG | 1 | 0 | 1 | 61 |
PO File | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 198 | |
▷ Static methods | 16 | 8.08% |
▷ Public methods | 173 | 87.37% |
▷ Protected methods | 18 | 9.09% |
▷ Private methods | 7 | 3.54% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ui-bg_inset-soft_50_c9c9c9_1x100.png | 0.27KB | 0.16KB | ▼ 40.93% |
assets/img/ui-bg_glass_100_f8f8f8_1x400.png | 0.26KB | 0.11KB | ▼ 55.34% |
assets/img/calendar.png | 0.37KB | 0.45KB | 0.00% |
assets/img/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
assets/img/ui-bg_flat_55_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |