72% autocompletamento-indirizzo-contact-form-7

Code Review | Autocompletamento indirizzo Contact Form 7

WordPress plugin Autocompletamento indirizzo Contact Form 7 scored72%from 54 tests.

About plugin

  • Plugin page: autocompletamento...
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 24, 2023
  • Number of updates: 12
  • Update frequency: every 122.8 days
  • Top authors: DevFabio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /780 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.87ms] Passed 4 tests

Analyzing server-side resources used by Autocompletamento indirizzo Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.37 ▲3.03
Dashboard /wp-admin3.31 ▲0.0047.82 ▼4.60
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼4.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.40 ▼14.19
Media Library /wp-admin/upload.php3.23 ▲0.0034.41 ▼4.32
Google Place API /wp-admin/admin.php?page=google-place-api3.0024.82

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Autocompletamento indirizzo Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.12 ▼1.281.68 ▼0.3845.06 ▲0.04
Dashboard /wp-admin2,209 ▲245.89 ▲0.05106.23 ▲5.4243.23 ▲0.65
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0535.28 ▼6.3533.64 ▼3.55
Add New Post /wp-admin/post-new.php1,534 ▲123.25 ▲0.25689.57 ▲45.3660.33 ▲1.65
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.0797.56 ▼11.9040.68 ▼7.55
Google Place API /wp-admin/admin.php?page=google-place-api280.440.063.46

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/autocompletamento-indirizzo-contact-form-7/calcola-distanza.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocompletamento-indirizzo-contact-form-7/autocompletamento-indirizzo-contact-form-7.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=google-place-api
    • > Network (severe)
    wp-admin/admin.php?page=google-place-api - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

autocompletamento-indirizzo-contact-form-7/autocompletamento-indirizzo-contact-form-7.php 92% from 13 tests

This is the main PHP file of "Autocompletamento indirizzo Contact Form 7" version 0.1.4, 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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected391 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP29647340
JavaScript1205051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.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 are no PNG files in this plugin