84% cf7-visited-pages-url-tracking

Code Review | CF7 Visited Pages URL Tracking

WordPress plugin CF7 Visited Pages URL Tracking scored84%from 54 tests.

About plugin

  • Plugin page: cf7-visited-pages...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 4
  • Update frequency: every 90.3 days
  • Top authors: thechetanvaghela (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /233 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.29ms] Passed 4 tests

A check of server-side resources used by CF7 Visited Pages URL Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.85 ▲0.79
Dashboard /wp-admin3.31 ▼0.0446.12 ▼13.69
Posts /wp-admin/edit.php3.36 ▲0.0045.55 ▼3.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.76 ▼10.75
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▼5.59

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by CF7 Visited Pages URL Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.41 ▼0.011.86 ▲0.2449.81 ▲8.20
Dashboard /wp-admin2,195 ▲155.63 ▼0.0498.92 ▲12.8742.68 ▲1.08
Posts /wp-admin/edit.php2,103 ▼01.99 ▲0.0436.16 ▲1.1330.85 ▼2.94
Add New Post /wp-admin/post-new.php1,526 ▼923.12 ▲5.18647.09 ▼33.1160.84 ▼7.66
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0497.20 ▼17.5045.63 ▼0.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-visited-pages-url-tracking/public/partials/cf7-visited-pages-url-tracking-public-display.php
    • > /wp-content/plugins/cf7-visited-pages-url-tracking/admin/partials/cf7-visited-pages-url-tracking-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: The official readme.txt is a good inspiration

cf7-visited-pages-url-tracking/cf7-visited-pages-url-tracking.php Passed 13 tests

Analyzing the main PHP file in "CF7 Visited Pages URL Tracking" version 1.0.0
138 characters long description:
Add visited site links to the mail of contact form 7, So admin/user can track that the user had which page visited before submit the form.

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
Success! There were no dangerous files found in this plugin508 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/how-to-use.png46.66KB23.14KB▼ 50.40%
admin/images/visited-pages-cookie.png56.49KB26.62KB▼ 52.88%