Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/appointment-form-manager/includes/class-appointment-form-manager-loader.php+142
Undefined property: Appointment_Form_Manager_Loader::$shortcodes
Server metrics [RAM: ▼1.94MB] [CPU: ▼58.27ms] Passed 4 tests
An overview of server-side resources used by Appointment Form Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 8.62 ▼37.06 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.24 ▼55.58 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.03 ▼45.07 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.39 ▼95.35 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.10 ▼31.00 |
AFM Custom CSS /wp-admin/admin.php?page=afm-custom-css-page | 2.07 | 5.91 |
Form /wp-admin/admin.php?page=afm-add-form-page | 2.07 | 7.50 |
Manage Mail List /wp-admin/admin.php?page=afm-manage-list-page | 2.07 | 5.06 |
AFM Settings /wp-admin/admin.php?page=afm-plugin-settings-page | 2.07 | 6.58 |
Edit Mail List /wp-admin/admin.php?page=afm-edit-mail-list | 2.07 | 5.93 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 66 new files
Database: 1 new table, 27 new options
New tables |
---|
wp_afm_list |
New WordPress options |
---|
afm_valid_email_err_msg |
afm_admin_send_success_msg |
afm_admin_send_err_msg |
can_compress_scripts |
afm_null_fname_err_msg |
afm_null_phone_err_msg |
afm_null_visit_err_msg |
afm_invalid_captcha_err_msg |
theysaidso_admin_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Appointment Form Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲202 | 14.00 ▼0.59 | 8.56 ▲6.69 | 44.48 ▲0.61 |
Dashboard /wp-admin | 2,241 ▲50 | 4.86 ▼1.04 | 114.32 ▼8.02 | 41.50 ▼22.14 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.04 ▲0.06 | 39.72 ▼3.48 | 32.72 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 22.69 ▼0.42 | 694.29 ▼1.10 | 70.09 ▲18.73 |
Media Library /wp-admin/upload.php | 1,489 ▲104 | 4.23 ▼0.12 | 115.09 ▼10.05 | 56.27 ▲5.08 |
AFM Custom CSS /wp-admin/admin.php?page=afm-custom-css-page | 812 | 2.04 | 24.12 | 29.61 |
Form /wp-admin/admin.php?page=afm-add-form-page | 922 | 2.62 | 55.90 | 39.85 |
Manage Mail List /wp-admin/admin.php?page=afm-manage-list-page | 835 | 2.03 | 30.58 | 33.39 |
AFM Settings /wp-admin/admin.php?page=afm-plugin-settings-page | 940 | 2.05 | 27.92 | 37.64 |
Edit Mail List /wp-admin/admin.php?page=afm-edit-mail-list | 810 | 2.05 | 35.05 | 35.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/appointment-form-manager/includes/class-appointment-form-manager-loader.php+142
Undefined property: Appointment_Form_Manager_Loader::$shortcodes
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_afm_list
- This plugin does not fully uninstall, leaving 27 options in the database
- widget_recent-comments
- can_compress_scripts
- afm_admin_send_err_msg
- afm_null_email_err_msg
- afm_admin_send_name_msg
- afm_valid_email_err_msg
- afm_admin_send_email_msg
- afm_admin_mail_from_email
- afm_null_comment_err_msg
- afm_admin_mail_to_option
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=afm-edit-mail-list
- > Notice in wp-content/plugins/appointment-form-manager/includes/class-appointment-form-manager-loader.php+142
Undefined property: Appointment_Form_Manager_Loader::$shortcodes
- > GET request to /wp-admin/admin.php?page=afm-custom-css-page
- > Notice in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-css-editor.php+51
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=afm-add-form-page
- > Warning in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-add-form.php+39
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=afm-manage-list-page
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=afm-manage-list-page
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/admin.php?page=afm-edit-mail-list
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/appointment-form-manager/admin/loaders/render.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Exception: Error Processing Request in wp-content/plugins/appointment-form-manager/admin/loaders/save.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-edit-mail-list.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-css-editor.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-add-form.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-mail-list.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appointment-form-manager/public/partials/appointment-form-manager-public-display.php:17
- > PHP Fatal error
Uncaught Exception: Error Processing Request in wp-content/plugins/appointment-form-manager/admin/loaders/formLoader.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/appointment-form-manager/admin/partials/appointment-form-manager-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: appointment form, contact form
appointment-form-manager/appointment-form-manager.php 92% from 13 tests
The primary PHP file in "Appointment Form Manager" version 2.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,270 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 371 | 384 | 2,350 |
PHP | 20 | 351 | 767 | 1,434 |
CSS | 6 | 10 | 18 | 485 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 36 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 29.41% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected