Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+26
Use of undefined constant AHOP_POST_NAME - assumed 'AHOP_POST_NAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.59MB] [CPU: ▼188.48ms] Passed 4 tests
An overview of server-side resources used by Avirato Hotels Promotional Packs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼0.68 | 6.06 ▼18.08 |
Dashboard /wp-admin | 2.06 ▼0.99 | 10.25 ▼38.42 |
Posts /wp-admin/edit.php | 2.06 ▼1.04 | 7.67 ▼43.17 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.37 | 5.87 ▼646.70 |
Media Library /wp-admin/upload.php | 2.06 ▼0.94 | 6.29 ▼25.63 |
Avirato Promo Packs /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings | 2.06 | 7.60 |
Avirato Suite /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings | 2.06 | 6.20 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: 2 new tables, no new options
New tables |
---|
wp_ahop_cats_offerPacks |
wp_ahop_textComp_offerPacks |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Avirato Hotels Promotional Packs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲244 | 16.38 ▲0.82 | 14.54 ▲4.52 | 45.99 ▼7.41 |
Dashboard /wp-admin | 2,999 ▲71 | 5.88 ▼0.10 | 141.61 ▼27.36 | 150.40 ▲25.28 |
Posts /wp-admin/edit.php | 2,791 ▲52 | 2.68 ▼0.01 | 62.98 ▼13.37 | 82.51 ▼20.25 |
Add New Post /wp-admin/post-new.php | 1,719 ▲138 | 18.83 ▼0.12 | 370.17 ▼69.21 | 105.41 ▼9.67 |
Media Library /wp-admin/upload.php | 1,785 ▼25 | 5.00 ▼0.03 | 129.11 ▼39.77 | 152.86 ▲23.47 |
Avirato Promo Packs /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings | 1,437 | 2.47 | 55.35 | 97.50 |
Avirato Suite /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings | 1,244 | 2.08 | 54.21 | 85.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+26
Use of undefined constant AHOP_POST_NAME - assumed 'AHOP_POST_NAME' (this will throw an Error in a future version of PHP)
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+26
Use of undefined constant AHOP_POST_NAME - assumed 'AHOP_POST_NAME' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+27
Use of undefined constant AHOP_POST_TYPE - assumed 'AHOP_POST_TYPE' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+28
Use of undefined constant AHOP_POST_CATEGORY - assumed 'AHOP_POST_CATEGORY' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+29
Use of undefined constant AHOP_POST_AUTH_ID - assumed 'AHOP_POST_AUTH_ID' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ahs_aviratoSuite-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+30
Use of undefined constant AHOP_POST_STATUS - assumed 'AHOP_POST_STATUS' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings
- > Notice in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+591
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings
- > Notice in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+593
Trying to get property 'textoCompleto' of non-object
- > GET request to /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings
- > Warning in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+463
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=ahop_aviratoOfferPacks-content-settings
- > Notice in wp-content/plugins/avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php+480
Undefined variable: alertTrans
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("")
avirato-hotels-promotional-packs/Avirato_Hotels_Promotional_Packs.php 92% from 13 tests
The principal PHP file in "Avirato Hotels Promotional Packs" v. 2.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("avirato-hotels-promotional-packs.php" instead of "Avirato_Hotels_Promotional_Packs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,951 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 65 | 88 | 954 |
PHP | 1 | 68 | 24 | 770 |
JavaScript | 4 | 35 | 37 | 227 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icons/ic_event_black_24dp_2x.png | 0.18KB | 0.26KB | 0.00% |
includes/icons/avirato-logo1.png | 4.40KB | 2.39KB | ▼ 45.71% |
includes/icons/icon-18x18.png | 0.53KB | 0.52KB | ▼ 0.92% |
includes/icons/icon-128x128.png | 3.73KB | 2.41KB | ▼ 35.32% |
includes/icons/icono-WEBINARS-PROXIMOS.png | 1.63KB | 1.66KB | 0.00% |