Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.42MB] [CPU: ▼35.85ms] Passed 4 tests
This is a short check of server-side resources used by WAH Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.64 ▲3.39 |
Dashboard /wp-admin | 3.58 ▲0.23 | 26.87 ▼38.37 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 33.00 ▼19.27 |
Add New Post /wp-admin/post-new.php | 3.58 ▼2.31 | 27.28 ▼73.71 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 25.93 ▼12.06 |
WAH Forms /wp-admin/options-general.php?page=wahforms-page | 3.58 | 28.45 |
All Items /wp-admin/edit.php?post_type=wah_forms | 3.58 | 25.17 |
Add New WAH Form /wp-admin/post-new.php?post_type=wah_forms | 3.58 | 27.66 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WAH Forms: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.71 ▼0.47 | 8.02 ▲6.01 | 37.19 ▼5.86 |
Dashboard /wp-admin | 2,240 ▲55 | 5.86 ▲0.05 | 103.05 ▼5.07 | 38.11 ▼1.73 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.97 ▼0.09 | 37.44 ▼0.03 | 34.23 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.32 ▲5.83 | 650.86 ▼49.81 | 61.65 ▲11.76 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.19 ▼0.00 | 96.24 ▼11.81 | 41.48 ▼6.43 |
WAH Forms /wp-admin/options-general.php?page=wahforms-page | 907 | 1.96 | 27.70 | 30.77 |
All Items /wp-admin/edit.php?post_type=wah_forms | 1,084 | 1.96 | 30.16 | 29.46 |
Add New WAH Form /wp-admin/post-new.php?post_type=wah_forms | 2,017 | 3.28 | 63.18 | 88.72 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wah_forms
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 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
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/public/enqueue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/public/ajax.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/admin/enqueue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/admin/helpers.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/public/init.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wah-forms/admin/tpl/lead-item.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/admin/init.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wah-forms/wah-forms.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wah-forms/admin/ajax.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: form builder, contact form, feedback, email, contact...
wah-forms/wah-forms.php 85% from 13 tests
The main PHP file in "WAH Forms" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "5.8")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.1" instead of "5.6")
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
There were no executable files found in this plugin6,204 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 175 | 319 | 3,650 |
Sass | 4 | 73 | 5 | 1,979 |
JavaScript | 2 | 45 | 39 | 571 |
CSS | 4 | 0 | 4 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 46 | |
▷ Named functions | 44 | 95.65% |
▷ Anonymous functions | 2 | 4.35% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin