Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/kiwi-com-widget/kiwicom-widget.php+60
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼59.89ms] Passed 4 tests
An overview of server-side resources used by Cheap Flights By Kiwi.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.60 ▼35.10 |
Dashboard /wp-admin | 2.08 ▼1.26 | 5.80 ▼62.50 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.28 ▼43.87 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.44 ▼98.09 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.06 ▼30.58 |
Kiwi.com Widget /wp-admin/options-general.php?page=kiwicom | 2.08 | 5.88 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_kiwicom-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Cheap Flights By Kiwi.com
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 14.35 ▲0.15 | 25.04 ▲23.12 | 42.56 ▼0.69 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.12 | 95.04 ▲10.44 | 40.74 ▼5.02 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.94 ▼0.02 | 38.26 ▼3.15 | 35.55 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,669 | 19.51 ▼3.38 | 925.80 ▲272.97 | 39.74 ▼17.54 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.17 ▼0.04 | 100.62 ▼3.39 | 42.92 ▼4.80 |
Kiwi.com Widget /wp-admin/options-general.php?page=kiwicom | 801 | 2.00 | 26.63 | 34.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/kiwi-com-widget/kiwicom-widget.php+60
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_kiwicom-widget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=kiwicom
- > Deprecated in wp-content/plugins/kiwi-com-widget/kiwicom-widget.php+60
Function create_function() is deprecated
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kiwi-com-widget/includes/widget.class.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: travel, affiliate, blog, attractions, engagement...
kiwi-com-widget/kiwicom-widget.php 85% from 13 tests
The main file in "Cheap Flights By Kiwi.com" v. 1.1.1 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kiwi-com-widget.php" instead of "kiwicom-widget.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected377 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 35 | 69 | 165 |
JavaScript | 7 | 21 | 4 | 145 |
JSON | 1 | 0 | 0 | 36 |
Markdown | 1 | 24 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin