Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp2appir/wp2appir.php+80
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼12.68ms] Passed 4 tests
This is a short check of server-side resources used by WP2APP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 47.60 ▲2.20 |
Dashboard /wp-admin | 3.52 ▲0.22 | 53.48 ▼7.64 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.60 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.57 ▼0.32 | 81.54 ▼45.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 45.26 ▲3.85 |
تنظیمات اصلی /wp-admin/admin.php?page=wp2appir/pages/hami_manager_primery.php | 3.45 | 41.46 |
تنظیمات تپسل /wp-admin/admin.php?page=wp2appir/pages/tapsell.php | 3.39 | 39.30 |
تنظیمات حساب کاربری /wp-admin/admin.php?page=wp2appir/register/register.php | 3.40 | 41.39 |
تنظیمات نمایش مطالب /wp-admin/admin.php?page=wp2appir/pages/hami_manager_post_types.php | 3.35 | 42.95 |
تنظیمات پوسته /wp-admin/admin.php?page=wp2appir/pages/wp2appir_theme_new.php | 3.43 | 44.29 |
فروش فایل /wp-admin/admin.php?page=wp2appir/sale_meta/sale_meta.php | 3.48 | 44.72 |
تنظیمات عدد /wp-admin/admin.php?page=wp2appir/pages/adver_addad_hami.php | 3.37 | 38.54 |
تنظیمات منو /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php | 3.44 | 57.97 |
ارسال نوتیفیکیشن /wp-admin/admin.php?page=wp2appir/pages/send_notif_hami.php | 3.39 | 44.02 |
Server storage [IO: ▲3.75MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 141 new files
Database: 7 new tables, 21 new options
New tables |
---|
wp_hami_mainpage |
wp_hami_appost |
wp_hami_set |
wp_hami_appstatic |
wp_wp2app_commission |
wp_hami_slider |
wp_wp2app_checkout |
New WordPress options |
---|
wp2app_telg_default |
wp2app_cats |
theysaidso_admin_options |
can_compress_scripts |
hrt_telegram_chatid |
db_upgraded |
widget_theysaidso_widget |
wp2app_custom_fields |
hrt_telegram_token |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP2APP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 14.46 ▲0.26 | 1.98 ▲0.32 | 44.29 ▼31.91 |
Dashboard /wp-admin | 2,288 ▲103 | 5.88 ▲0.72 | 98.57 ▼11.80 | 87.69 ▲6.24 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.01 ▲0.00 | 40.79 ▼20.46 | 43.74 ▲2.45 |
Add New Post /wp-admin/post-new.php | 6,531 ▲5,003 | 20.59 ▼0.24 | 961.42 ▲191.46 | 64.60 ▼36.68 |
Media Library /wp-admin/upload.php | 1,449 ▲67 | 4.24 ▲0.12 | 100.66 ▼35.28 | 81.06 ▼6.33 |
تنظیمات اصلی /wp-admin/admin.php?page=wp2appir/pages/hami_manager_primery.php | 1,506 | 3.00 | 53.77 | 121.93 |
تنظیمات تپسل /wp-admin/admin.php?page=wp2appir/pages/tapsell.php | 1,102 | 2.02 | 24.36 | 60.32 |
تنظیمات حساب کاربری /wp-admin/admin.php?page=wp2appir/register/register.php | 1,556 | 2.36 | 41.66 | 54.92 |
تنظیمات نمایش مطالب /wp-admin/admin.php?page=wp2appir/pages/hami_manager_post_types.php | 871 | 2.01 | 26.45 | 37.70 |
تنظیمات پوسته /wp-admin/admin.php?page=wp2appir/pages/wp2appir_theme_new.php | 2,806 | 4.53 | 142.89 | 144.53 |
فروش فایل /wp-admin/admin.php?page=wp2appir/sale_meta/sale_meta.php | 1,084 | 1.88 | 33.26 | 44.15 |
تنظیمات عدد /wp-admin/admin.php?page=wp2appir/pages/adver_addad_hami.php | 890 | 2.03 | 27.45 | 37.44 |
تنظیمات منو /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php | 1,565 | 4.13 | 63.54 | 164.97 |
ارسال نوتیفیکیشن /wp-admin/admin.php?page=wp2appir/pages/send_notif_hami.php | 1,149 | 2.25 | 42.54 | 53.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_hami_appstatic
- wp_hami_slider
- wp_hami_mainpage
- wp_wp2app_commission
- wp_wp2app_checkout
- wp_hami_appost
- wp_hami_set
- This plugin did not uninstall successfully, leaving 21 options in the database
- theysaidso_admin_options
- WP2APPIR_VERSION
- can_compress_scripts
- widget_recent-comments
- hrt_telegram_chatid
- wp2app_custom_fields
- wp2app_cats
- hrt_telegram_token
- hrt_telegram_sign
- hrt_lastmf_appost
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/hami_manager_primery.php
- > Notice in wp-content/plugins/wp2appir/pages/hami_manager_primery.php+322
Undefined index: txt_url_default_image
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/adver_addad_hami.php
- > Notice in wp-content/plugins/wp2appir/pages/adver_addad_hami.php+102
Undefined variable: _SESSION
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/adver_addad_hami.php
- > Notice in wp-content/plugins/wp2appir/pages/adver_addad_hami.php+102
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php
- > Notice in wp-content/plugins/wp2appir/pages/hami_manager_appost.php+148
Undefined variable: type
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php
- > Notice in wp-content/plugins/wp2appir/pages/hami_manager_appost.php+149
Undefined index: menu_app
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php
- > Notice in wp-content/plugins/wp2appir/pages/hami_manager_appost.php+149
Undefined index: menu_app_hami_planning
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp2appir/register/class/SmsIR_UltraFastSend.php
- > /wp-content/plugins/wp2appir/pages/themes/theme4.php
- > /wp-content/plugins/wp2appir/register/new_field.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp2appir/pages/get_category_list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/wp2appir/account/tasv.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp2appir/sale_meta/sales.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp2appir/sale_meta/plans.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp2appir/sale_meta/class_sale_meta.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp2appir/pages/themes/theme6.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp2appir/pages/themes/theme8.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp2appir/pages/update_setting.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp2appir/pages/themes/theme2.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp2appir/pages/themes/theme5.php:66
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp2appir/pages/hami_manager_appost.php
- > Network (severe)
wp-content/plugins/wp2appir/assets/fonts/fontawesome-webfont.woff2?v=4.5.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3 in wp2appir/assets to your readme.txt
wp2appir/wp2appir.php 92% from 13 tests
The principal PHP file in "WP2APP" v. 2.6.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin15,732 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 4,245 | 597 | 12,332 |
JavaScript | 19 | 288 | 169 | 2,439 |
SVG | 1 | 0 | 0 | 655 |
CSS | 12 | 2 | 8 | 306 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 156)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 156.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 205 | 89.91% |
▷ Protected methods | 8 | 3.51% |
▷ Private methods | 15 | 6.58% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/web2app_logo1.png | 1.91KB | 1.18KB | ▼ 38.26% |
assets/img/web2app_logo.png | 77.08KB | 30.14KB | ▼ 60.90% |
assets/img/faq.png | 1.06KB | 0.81KB | ▼ 23.71% |
assets/img/smart-phone.png | 1.22KB | 0.69KB | ▼ 43.14% |
assets/img/support.png | 1.21KB | 0.96KB | ▼ 20.87% |