Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼289.34ms] Passed 4 tests
An overview of server-side resources used by Anfrageformular – Multi Step Drag & Drop Formular Builder – Leadgenerierung
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.49 | 61.71 ▲13.14 |
Dashboard /wp-admin | 4.05 ▲0.65 | 44.92 ▲6.76 |
Posts /wp-admin/edit.php | 4.28 ▲0.64 | 44.49 ▲8.43 |
Add New Post /wp-admin/post-new.php | 7.52 ▲0.55 | 97.21 ▼1,176.87 |
Media Library /wp-admin/upload.php | 4.00 ▲0.71 | 28.78 ▲4.33 |
Formulare /wp-admin/edit.php?post_type=af2_formular | 4.04 | 31.99 |
Fragen /wp-admin/edit.php?post_type=af2_frage | 4.04 | 30.67 |
LeadDetails /wp-admin/admin.php?page=af2_lead_details | 3.81 | 28.56 |
Kontaktformularbuilder /wp-admin/admin.php?page=af2_kontaktformularbuilder | 3.81 | 27.70 |
Formularbuilder /wp-admin/admin.php?page=af2_formularbuilder | 3.81 | 29.98 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 4.19 | 29.62 |
Kontaktformulare /wp-admin/edit.php?post_type=af2_kontaktformular | 4.04 | 36.82 |
Fragenbuilder /wp-admin/admin.php?page=af2_fragenbuilder | 3.99 | 31.43 |
Server storage [IO: ▲5.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 245 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
af2_version |
af2_impressions |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Anfrageformular – Multi Step Drag & Drop Formular Builder – Leadgenerierung
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,997 ▲243 | 16.40 ▲0.83 | 11.09 ▲5.05 | 2.58 ▲0.17 |
Dashboard /wp-admin | 2,959 ▲98 | 6.00 ▼0.17 | 117.20 ▼10.51 | 185.43 ▲21.83 |
Posts /wp-admin/edit.php | 2,747 ▲53 | 3.25 ▲0.02 | 63.06 ▼0.48 | 152.38 ▲10.27 |
Add New Post /wp-admin/post-new.php | 1,790 ▲122 | 20.16 ▲1.47 | 370.65 ▼38.30 | 191.27 ▲34.80 |
Media Library /wp-admin/upload.php | 1,753 ▲55 | 5.71 ▲0.19 | 120.05 ▼12.38 | 209.99 ▲27.00 |
Formulare /wp-admin/edit.php?post_type=af2_formular | 1,429 | 3.29 | 59.29 | 129.84 |
Fragen /wp-admin/edit.php?post_type=af2_frage | 1,429 | 3.16 | 59.45 | 129.40 |
LeadDetails /wp-admin/admin.php?page=af2_lead_details | 1,188 | 3.01 | 56.31 | 225.39 |
Kontaktformularbuilder /wp-admin/admin.php?page=af2_kontaktformularbuilder | 1,131 | 3.40 | 62.80 | 179.01 |
Formularbuilder /wp-admin/admin.php?page=af2_formularbuilder | 1,157 | 3.72 | 66.63 | 205.33 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,461 | 2.52 | 53.54 | 111.47 |
Kontaktformulare /wp-admin/edit.php?post_type=af2_kontaktformular | 1,433 | 3.08 | 60.73 | 124.60 |
Fragenbuilder /wp-admin/admin.php?page=af2_fragenbuilder | 1,394 | 5.26 | 80.41 | 192.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/anfrageformular/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 6 options
- fs_gdpr
- fs_accounts
- af2_impressions
- fs_debug_mode
- af2_version
- fs_active_plugins
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/anfrageformular/admin/Admin.php
- > /wp-content/plugins/anfrageformular/settings.php
- > /wp-content/plugins/anfrageformular/freemius/templates/ajax-loader.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/anfrageformular/frontend/frontend_view.php:775
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anfrageformular/admin/menus/70_Formularbuilder.php:256
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anfrageformular/admin/menu_tools.php:764
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/anfrageformular/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=af2_kontaktformularbuilder
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'questions')" "TypeError: Cannot read properties of undefined (reading 'questions')\n at af2_kfb_load_content (/wp-content/plugins/anfrageformular/res/scripts/af2_kontaktformularbuilder_c.js?ver=5.9.2:542:16)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/anfrageformular/res/scripts/af2_kontaktformularbuilder_c.js?ver=5.9.2:31:9)\n at HTMLDocument.dispatch (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:43064)\n at HTMLDocument.v.handle (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:41048)\n at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:71515)\n at HTMLDocument.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:72110)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:3003)\n at s.fn.init.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:1481)\n at s.fn.init.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:72086)\n at af2_throw_event (/wp-content/plugins/anfrageformular/res/scripts/af2_builder.js?ver=5.9.2:184:16)" undefined
- > GET request to /wp-admin/admin.php?page=af2_kontaktformularbuilder
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'questions')
- > GET request to /wp-admin/admin.php?page=af2_fragenbuilder
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'answers')" "TypeError: Cannot read properties of undefined (reading 'answers')\n at af2_fb_load_content (/wp-content/plugins/anfrageformular/res/scripts/af2_fragenbuilder_c.js?ver=5.9.2:166:27)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/anfrageformular/res/scripts/af2_fragenbuilder_c.js?ver=5.9.2:7:9)\n at HTMLDocument.dispatch (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:43064)\n at HTMLDocument.v.handle (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:41048)\n at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:71515)\n at HTMLDocument.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:72110)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:3003)\n at s.fn.init.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:1481)\n at s.fn.init.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:72086)\n at af2_throw_event (/wp-content/plugins/anfrageformular/res/scripts/af2_builder.js?ver=5.9.2:184:16)" undefined
- > GET request to /wp-admin/admin.php?page=af2_fragenbuilder
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'answers')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
anfrageformular/Anfrageformular.php 85% from 13 tests
The main PHP file in "Anfrageformular – Multi Step Drag & Drop Formular Builder – Leadgenerierung" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("anfrageformular.php" instead of "Anfrageformular.php")
- Description: The description should be shorter than 140 characters (currently 373 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin59,932 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,117 | 16,851 | 33,795 |
JavaScript | 29 | 3,625 | 3,273 | 21,542 |
CSS | 20 | 503 | 697 | 2,373 |
PO File | 1 | 598 | 735 | 1,980 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 28 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 72.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,193 | |
▷ Static methods | 173 | 14.50% |
▷ Public methods | 848 | 71.08% |
▷ Protected methods | 15 | 1.26% |
▷ Private methods | 330 | 27.66% |
Functions | 162 | |
▷ Named functions | 160 | 98.77% |
▷ Anonymous functions | 2 | 1.23% |
Constants | 151 | |
▷ Global constants | 126 | 83.44% |
▷ Class constants | 25 | 16.56% |
▷ Public constants | 25 | 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
12 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
question_types/2_Multiselect/icon.png | 7.39KB | 4.50KB | ▼ 39.08% |
pro_qtypes/5_Datum/icon.png | 5.32KB | 2.16KB | ▼ 59.39% |
pro_qtypes/4_Textbereich/icon.png | 4.67KB | 1.74KB | ▼ 62.63% |
res/menu_icon.png | 2.57KB | 1.30KB | ▼ 49.22% |
res/pro/video.png | 68.09KB | 25.23KB | ▼ 62.94% |