Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/plugin-jetradar-cheap-flights/aviasales.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; Aviasales has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼52.42ms] Passed 4 tests
Analyzing server-side resources used by Plugin Jetradar Cheap Flights
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 5.21 ▼33.70 |
Dashboard /wp-admin | 2.13 ▼1.22 | 5.65 ▼54.98 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.05 ▼40.01 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.22 ▼80.28 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.98 ▼34.39 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_aviasales |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Jetradar Cheap Flights
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.77 ▲0.22 | 1.77 ▲0.15 | 43.93 ▲1.29 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.08 | 111.10 ▲3.75 | 38.51 ▼2.61 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▲0.01 | 36.77 ▼1.35 | 32.19 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.22 ▲4.62 | 610.63 ▼36.52 | 54.44 ▼2.56 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.15 ▼0.01 | 93.24 ▼7.61 | 42.94 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/plugin-jetradar-cheap-flights/aviasales.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; Aviasales has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_aviasales
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/plugin-jetradar-cheap-flights/aviasales.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/plugin-jetradar-cheap-flights/params.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/plugin-jetradar-cheap-flights/widget.php:3
- > PHP Notice
Undefined variable: validate in wp-content/plugins/plugin-jetradar-cheap-flights/params.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/plugin-jetradar-cheap-flights/params.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
plugin-jetradar-cheap-flights/aviasales.php 85% from 13 tests
The main PHP script in "Plugin Jetradar Cheap Flights" version 2.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plugin-jetradar-cheap-flights.php" instead of "aviasales.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,820 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 155 | 46 | 695 |
JavaScript | 5 | 153 | 132 | 675 |
PHP | 5 | 195 | 21 | 450 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 6 | 46.15% |
▷ Protected methods | 5 | 38.46% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/aviasales_logo.png | 3.46KB | 1.42KB | ▼ 58.94% |
assets/jetradar_logo.png | 7.82KB | 2.73KB | ▼ 65.10% |
screenshot-2.png | 32.35KB | 8.42KB | ▼ 73.98% |
assets/minicolors/jquery.minicolors.png | 75.64KB | 34.31KB | ▼ 54.64% |
assets/input_bg.png | 14.26KB | 6.68KB | ▼ 53.13% |