83% missed-call-mobile-number-verification-add-on-for-contactform7-cognalyscom

Code Review | Free mobile number verification for CF7

WordPress plugin Free mobile number verification for CF7 scored 83% from 54 tests.

About plugin

  • Plugin page: missed-call-mobil...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Oct 29, 2014
  • Latest release: Nov 7, 2014
  • Number of updates: 27
  • Update frequency: every 0.3 days
  • Top authors: cognalys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,855 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 gracefully, with no errors

Server metrics [RAM: ▼1.04MB] [CPU: ▼211.05ms] Passed 4 tests

An overview of server-side resources used by Free mobile number verification for CF7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.55 ▼0.2817.70 ▼16.24
Dashboard /wp-admin2.60 ▼0.4521.17 ▼26.75
Posts /wp-admin/edit.php2.60 ▼0.5017.36 ▼29.57
Add New Post /wp-admin/post-new.php2.60 ▼2.8317.45 ▼771.63
Media Library /wp-admin/upload.php2.60 ▼0.4015.91 ▼16.20

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free mobile number verification for CF7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11616.00 ▲0.4510.11 ▼1.0447.41 ▲2.54
Dashboard /wp-admin2,982 ▲486.02 ▲0.07143.08 ▼8.99110.36 ▲4.29
Posts /wp-admin/edit.php2,748 ▲92.71 ▼0.0165.25 ▼3.6085.05 ▼8.73
Add New Post /wp-admin/post-new.php1,678 ▲6318.87 ▼2.67388.15 ▲109.12105.91 ▲0.84
Media Library /wp-admin/upload.php1,816 ▲95.05 ▲0.01149.09 ▼11.31117.17 ▲10.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/missed-call-mobile-number-verification-add-on-for-contactform7-cognalyscom/cf7_cognalys_addon.php+176
    Trying to access array offset on value of type bool

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/missed-call-mobile-number-verification-add-on-for-contactform7-cognalyscom/cf7_cognalys_addon.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can take inspiration from this readme.txt

missed-call-mobile-number-verification-add-on-for-contactform7-cognalyscom/cf7_cognalys_addon.php 92% from 13 tests

This is the main PHP file of "Free mobile number verification for CF7" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("missed-call-mobile-number-verification-add-on-for-contactform7-cognalyscom.php" instead of "cf7_cognalys_addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin359 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23114206
JavaScript2174152
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.68MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.03KB17.87KB▼ 55.37%
assets/icon-256x256.png12.50KB6.39KB▼ 48.90%
assets/img/flags.png69.15KB23.62KB▼ 65.85%
assets/screenshot_3.png80.17KB36.80KB▼ 54.10%
assets/screenshot_1.png40.03KB17.87KB▼ 55.37%