Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.40ms] Passed 4 tests
A check of server-side resources used by NM Contact Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.83 ▼1.37 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.82 ▼4.56 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.31 ▼0.40 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 83.08 ▼11.26 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.11 ▲8.57 |
Settings /wp-admin/admin.php?page=nm_settings | 3.37 | 31.44 |
Forms list /wp-admin/admin.php?page=nm_forms_list | 3.37 | 32.77 |
Detailed Forms /wp-admin/admin.php?page=nm_forms | 3.39 | 30.78 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
NM Contact 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,824 ▲78 | 13.32 ▼1.36 | 1.56 ▼0.33 | 40.57 ▼2.53 |
Dashboard /wp-admin | 2,233 ▲42 | 5.00 ▲0.10 | 95.79 ▼18.73 | 82.32 ▲37.89 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.41 ▲0.42 | 36.42 ▲2.07 | 34.26 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,688 ▲174 | 22.18 ▲4.62 | 656.48 ▼43.42 | 51.72 ▼2.72 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.31 ▲0.09 | 94.57 ▼12.89 | 81.44 ▲34.85 |
Settings /wp-admin/admin.php?page=nm_settings | 1,259 | 1.88 | 29.33 | 30.27 |
Forms list /wp-admin/admin.php?page=nm_forms_list | 1,050 | 1.85 | 26.64 | 35.20 |
Detailed Forms /wp-admin/admin.php?page=nm_forms | 702 | 1.53 | 6.94 | 15.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 52 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nm_settings
- > Notice in wp-content/plugins/nm-contact-forms/admin/settings.php+163
Trying to access array offset on value of type bool
- 46 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nm_forms_list
- > Notice in wp-content/plugins/nm-contact-forms/admin/formslist.php+252
Undefined variable: form
- 67 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nm_forms_list
- > Notice in wp-content/plugins/nm-contact-forms/admin/formslist.php+252
Trying to access array offset on value of type null
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nm_forms_list
- > Notice in wp-content/plugins/nm-contact-forms/admin/formslist.php+252
Undefined variable: field
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nm_forms_list
- > Notice in wp-content/plugins/nm-contact-forms/admin/formslist.php+200
Undefined variable: NbChamps
- > GET request to /wp-admin/admin.php?page=nm_forms
- > Parse error in wp-content/plugins/nm-contact-forms/admin/forms.php+435
syntax error, unexpected end of file
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nm-contact-forms/templates/email_template.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: fields in wp-content/plugins/nm-contact-forms/templates/email_template.php on line 923
- > PHP Notice
Undefined variable: subject in wp-content/plugins/nm-contact-forms/templates/email_template.php on line 920
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nm-contact-forms/admin/formslist.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/nm-contact-forms/templates/email_template.php on line 923
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/nm-contact-forms/admin/forms.php on line 435
- > PHP Fatal error
Uncaught Error: Call to a member function nm_donate() on null in wp-content/plugins/nm-contact-forms/admin/settings.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nm-contact-forms/index.php:33
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #6, #7, #8, #9 in nm-contact-forms/assets to your readme.txt
nm-contact-forms/index.php 85% from 13 tests
The main PHP file in "NM Contact Forms" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 240 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nm-contact-forms.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,011 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 328 | 96 | 2,198 |
JavaScript | 1 | 132 | 18 | 464 |
CSS | 2 | 83 | 1 | 349 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 233.00 |
▷ Minimum class complexity | 233.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 13.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/adminlogo2-v2.png | 1.05KB | 0.12KB | ▼ 88.85% |
admin/images/donation.png | 14.26KB | 4.29KB | ▼ 69.88% |
admin/images/logo-v2x48.png | 2.33KB | 1.33KB | ▼ 42.93% |
admin/images/batman_new.png | 1.14KB | 0.31KB | ▼ 72.76% |
admin/images/nm_close.png | 1.12KB | 0.29KB | ▼ 73.62% |