Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼10.42ms] Passed 4 tests
A check of server-side resources used by Flights & Hotels Booking WP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.42 ▲0.19 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.03 ▼0.58 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.46 ▼7.58 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 79.39 ▼33.70 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.52 ▲3.02 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_custom_plugin |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flights & Hotels Booking WP Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.17 ▼0.18 | 1.96 ▲0.40 | 46.18 ▲0.43 |
Dashboard /wp-admin | 2,219 ▲39 | 5.51 ▼0.16 | 84.93 ▼4.26 | 88.37 ▲47.10 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.96 ▼0.07 | 34.70 ▼2.00 | 34.38 ▼4.84 |
Add New Post /wp-admin/post-new.php | 1,561 ▲32 | 23.01 ▼0.01 | 694.40 ▲20.81 | 73.73 ▲20.18 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.22 ▲0.06 | 100.66 ▼7.55 | 72.55 ▲24.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_custom_plugin
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adiaha-hotel/apps/index.php
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ADIVAHA__PLUGIN_URL - assumed 'ADIVAHA__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/adiaha-hotel/apps/index.php on line 44
- > PHP Notice
Undefined variable: adivaha_nonce in wp-content/plugins/adiaha-hotel/apps/index.php on line 179
- > PHP Warning
Use of undefined constant ADIVAHA__PLUGIN_URL - assumed 'ADIVAHA__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/adiaha-hotel/apps/index.php on line 588
- > PHP Warning
Use of undefined constant ADIVAHA__PLUGIN_URL - assumed 'ADIVAHA__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/adiaha-hotel/apps/index.php on line 587
- > PHP Notice
Trying to get property 'form_autofill' of non-object in wp-content/plugins/adiaha-hotel/apps/index.php on line 394
- > PHP Notice
Trying to get property 'customer' of non-object in wp-content/plugins/adiaha-hotel/apps/index.php on line 466
- > PHP Notice
Undefined variable: chat_menu in wp-content/plugins/adiaha-hotel/apps/index.php on line 419
- > PHP Warning
Use of undefined constant ADIVAHA__PLUGIN_SITE_URL - assumed 'ADIVAHA__PLUGIN_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/adiaha-hotel/apps/index.php on line 630
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/adiaha-hotel/apps/index.php on line 419
- > PHP Notice
Trying to get property 'customer' of non-object in wp-content/plugins/adiaha-hotel/apps/index.php on line 393
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in adiaha-hotel/assets to your readme.txt
adiaha-hotel/adivaha.php 85% from 13 tests
This is the main PHP file of "Flights & Hotels Booking WP Plugin" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adiaha-hotel.php" instead of "adivaha.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 254 characters long)
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,560 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 104 | 86 | 1,313 |
CSS | 3 | 78 | 17 | 79 |
SVG | 6 | 0 | 0 | 79 |
JavaScript | 7 | 8 | 40 | 60 |
HTML | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
6 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.57KB | 0.53KB | ▼ 7.17% |
asset/images/icon.png | 3.07KB | 0.64KB | ▼ 79.17% |
asset/images/ipad.png | 91.10KB | 27.20KB | ▼ 70.14% |
images/quick-guide.png | 7.58KB | 3.75KB | ▼ 50.50% |
images/logo.png | 1.91KB | 1.02KB | ▼ 46.49% |