68% never-loose-contact-form

Code Review | Never Loose Contact Form

WordPress plugin Never Loose Contact Form scored68%from 54 tests.

About plugin

  • Plugin page: never-loose-conta...
  • Plugin version: 3.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 6, 2012
  • Latest release: Dec 11, 2021
  • Number of updates: 42
  • Update frequency: every 78.4 days
  • Top authors: andy_moyle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,151 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.27ms] Passed 4 tests

This is a short check of server-side resources used by Never Loose Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1444.58 ▼3.00
Dashboard /wp-admin3.45 ▲0.1453.49 ▼0.59
Posts /wp-admin/edit.php3.56 ▲0.2056.73 ▲2.09
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.48 ▼7.59
Media Library /wp-admin/upload.php3.38 ▲0.1446.29 ▲9.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables
wp_contact_form
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_never_loose_contact_form_widget
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Never Loose Contact Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14018.63 ▲4.431.71 ▼0.6742.64 ▼5.00
Dashboard /wp-admin2,294 ▲1179.40 ▲3.86232.95 ▲138.6742.42 ▼1.57
Posts /wp-admin/edit.php2,210 ▲1108.89 ▲6.8981.77 ▲43.1238.57 ▲6.57
Add New Post /wp-admin/post-new.php6,203 ▲4,67719.16 ▼4.09787.22 ▲105.5840.14 ▼18.01
Media Library /wp-admin/upload.php1,517 ▲11711.13 ▲6.90147.23 ▲40.0347.35 ▲2.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_contact_form
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_never_loose_contact_form_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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 | 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/never-loose-contact-form/index.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/never-loose-contact-form/widget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots do not have images: #1 (List of messages), #2 (Look at the complete message in the admin area)
Please take inspiration from this readme.txt

never-loose-contact-form/index.php 92% from 13 tests

The principal PHP file in "Never Loose Contact Form" v. 3.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("never-loose-contact-form.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin667 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29363495
PO File1323285
JavaScript1112654
CSS11533

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.40KB12.13KB▼ 60.09%
screenshot-2.png43.89KB16.92KB▼ 61.46%