Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/nino-contact-form/includes/nino-contact-widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; nino_contact_widget has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼187.36ms] Passed 4 tests
An overview of server-side resources used by Nino contact form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼0.84 | 5.68 ▼18.05 |
Dashboard /wp-admin | 1.90 ▼1.16 | 5.81 ▼46.63 |
Posts /wp-admin/edit.php | 1.90 ▼1.21 | 8.41 ▼28.71 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.54 | 6.44 ▼645.53 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 5.32 ▼28.56 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_nino_contact_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Nino contact form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.26 ▲0.20 | 12.45 ▲1.89 | 46.12 ▼1.12 |
Dashboard /wp-admin | 3,009 ▲75 | 6.00 ▲0.06 | 143.90 ▼17.38 | 110.21 ▲0.90 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.01 | 67.58 ▼5.91 | 88.97 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,617 ▼55 | 18.77 ▲0.02 | 400.90 ▼4.58 | 111.24 ▲3.61 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.04 ▲0.02 | 159.28 ▼0.80 | 110.24 ▼5.10 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/nino-contact-form/includes/nino-contact-widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; nino_contact_widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- widget_nino_contact_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nino-contact-form/includes/libraries/captcha/securimage_math.php
- > /wp-content/plugins/nino-contact-form/includes/libraries/captcha/securimage_show.php
- > /wp-content/plugins/nino-contact-form/includes/libraries/captcha/securimage_multiple_words.php
- > /wp-content/plugins/nino-contact-form/includes/admin/contact-form.php
- 95× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: nino_contact_field_value in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 235
- > PHP Notice
Undefined variable: nino_contact_form_message_success in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 95
- > PHP Notice
Undefined variable: nino_contact_field_setting in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 33
- > PHP Notice
Undefined variable: nino_contact_input_group in wp-content/plugins/nino-contact-form/includes/contact-form-processing.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function nino_contact_layout_list() in wp-content/plugins/nino-contact-form/includes/admin/form-processing.php:9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nino-contact-form/includes/nino-contact-render.php:176
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nino-contact-form/includes/contact-form-processing.php on line 30
- > PHP Notice
Undefined variable: captcha_list in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 152
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nino-contact-form/includes/admin/contact-form.php on line 95
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
nino-contact-form/nino-contact-form.php Passed 13 tests
The main file in "Nino contact form" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Nino Contact Form - The easiest way to get contact form to your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,372 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 587 | 1,341 | 2,619 |
CSS | 2 | 0 | 39 | 1,031 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 3 | 50 | 38 | 218 |
HTML | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 102.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 289.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 20 | 38.46% |
▷ Protected methods | 32 | 61.54% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/captcha-2.png | 3.35KB | 1.73KB | ▼ 48.34% |
includes/assets/images/form-style-2.png | 1.95KB | 0.89KB | ▼ 54.34% |
includes/libraries/captcha/images/audio_icon.png | 1.64KB | 2.04KB | 0.00% |
includes/assets/images/layout-4.png | 1.26KB | 0.19KB | ▼ 84.67% |
includes/assets/images/form-style-1.png | 1.96KB | 0.88KB | ▼ 55.15% |