Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/the-basic-contact-form/basic-contact-form.php+99
Undefined variable: print
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.23ms] Passed 4 tests
A check of server-side resources used by Basic Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.39 ▲1.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.94 ▼3.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.41 ▼2.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.78 ▼15.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.25 ▲1.09 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_basic_contact_form |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Basic Contact Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.42 ▼1.14 | 9.31 ▲7.65 | 43.84 ▲3.49 |
Dashboard /wp-admin | 2,218 ▲41 | 5.62 ▼0.03 | 94.36 ▲4.87 | 43.10 ▲3.25 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▼0.03 | 33.85 ▼0.15 | 34.93 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 18.27 ▲0.17 | 618.78 ▼25.57 | 65.66 ▲2.57 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.17 ▲0.01 | 98.43 ▼5.99 | 41.57 ▼4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/the-basic-contact-form/includes/bcf-settings-form-templates.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/the-basic-contact-form/includes/bcf-settings-form-templates.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/the-basic-contact-form/includes/bcf-admin-setting-controls.php:28
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/the-basic-contact-form/includes/bcf-admin-setting-controls.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: basic contact form, captcha, feedback, contact form, ajax...
the-basic-contact-form/basic-contact-form.php 85% from 13 tests
The entry point to "Basic Contact Form" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("the-basic-contact-form.php" instead of "basic-contact-form.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,481 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,449 | 1,993 | 4,842 |
PHP | 3 | 101 | 26 | 366 |
CSS | 2 | 20 | 0 | 235 |
JavaScript | 1 | 7 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/liner.png | 0.78KB | 1.05KB | 0.00% |