84% lana-contact-form

Code Review | Lana Contact Form

WordPress plugin Lana Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: lana-contact-form
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2016
  • Latest release: Sep 13, 2022
  • Number of updates: 61
  • Update frequency: every 34.6 days
  • Top authors: lanacodes (59.02%)lanadesign (42.62%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,041 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.02ms] Passed 4 tests

A check of server-side resources used by Lana Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.80 ▼3.17
Dashboard /wp-admin3.36 ▲0.0145.01 ▼13.40
Posts /wp-admin/edit.php3.48 ▲0.1251.59 ▲0.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0591.15 ▼8.21
Media Library /wp-admin/upload.php3.29 ▲0.0536.37 ▲3.92

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_lana_contact_form
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Lana Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.27 ▼0.081.65 ▼0.0542.98 ▲2.97
Dashboard /wp-admin2,198 ▲245.61 ▲0.0492.12 ▲5.1640.15 ▼0.81
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0238.75 ▼2.8737.16 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▲0.10586.74 ▼64.4650.33 ▼16.07
Media Library /wp-admin/upload.php1,400 ▼04.39 ▲0.2293.08 ▼3.9641.70 ▲0.77

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_lana_contact_form
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-contact-form/includes/class-lana-contact-form-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: bootstrap contact form, contact form, email message, captcha

lana-contact-form/lana-contact-form.php Passed 13 tests

The entry point to "Lana Contact Form" version 1.4.0 is a PHP file that has certain tags in its header comment area
38 characters long description:
Easy to use contact form with captcha.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,891 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS135801,456
PHP5128190435

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin