74% mis-leads-contact-form-7

Code Review | Mis Leads - Contact Form 7

WordPress plugin Mis Leads - Contact Form 7 scored74%from 54 tests.

About plugin

  • Plugin page: mis-leads-contact...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2017
  • Latest release: Sep 13, 2017
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: ohayo-web (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /941 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼44.64ms] Passed 4 tests

This is a short check of server-side resources used by Mis Leads - Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7115.47 ▼28.92
Dashboard /wp-admin2.80 ▼0.5520.22 ▼42.33
Posts /wp-admin/edit.php2.80 ▼0.5617.75 ▼30.47
Add New Post /wp-admin/post-new.php2.80 ▼3.0916.83 ▼76.84
Media Library /wp-admin/upload.php2.80 ▼0.4316.34 ▼20.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mis Leads - Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17914.11 ▼0.195.89 ▲4.1042.49 ▼2.33
Dashboard /wp-admin2,216 ▲315.84 ▲0.00101.96 ▼0.6243.42 ▲2.85
Posts /wp-admin/edit.php2,102 ▲131.97 ▼0.0834.74 ▼2.0532.91 ▼5.17
Add New Post /wp-admin/post-new.php1,546 ▲1823.37 ▲5.19624.06 ▼2.3253.95 ▲4.26
Media Library /wp-admin/upload.php1,407 ▲164.24 ▲0.0492.90 ▼6.6943.03 ▼2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mis-leads-contact-form-7/includes/class.misleads-cf7.php+181
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mis-leads-contact-form-7/views/admin_page.php:21

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: conctact, form, leads, contact form

mis-leads-contact-form-7/mis-leads-cf7.php 92% from 13 tests

This is the main PHP file of "Mis Leads - Contact Form 7" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mis-leads-contact-form-7.php" instead of "mis-leads-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected404 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3150104213
JavaScript24532107
PO File2272984

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin