84% cf7-popups

Code Review | Popups - Submission Messages For Contact Form 7

WordPress plugin Popups - Submission Messages For Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: cf7-popups
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2021
  • Latest release: Nov 5, 2023
  • Number of updates: 10
  • Update frequency: every 98.5 days
  • Top authors: codeworkweb (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /22,784 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.49ms] Passed 4 tests

This is a short check of server-side resources used by Popups - Submission Messages For Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.01 ▼2.07
Dashboard /wp-admin3.34 ▲0.0351.12 ▲6.93
Posts /wp-admin/edit.php3.39 ▲0.0348.85 ▲3.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.56 ▼8.33
Media Library /wp-admin/upload.php3.26 ▲0.0334.21 ▲0.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Popups - Submission Messages For Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲11913.42 ▼0.719.27 ▲7.0341.90 ▼2.17
Dashboard /wp-admin2,220 ▲465.57 ▲0.0489.22 ▼2.9638.45 ▲2.22
Posts /wp-admin/edit.php2,126 ▲262.01 ▲0.0242.60 ▲2.0837.91 ▲0.66
Add New Post /wp-admin/post-new.php1,546 ▲723.22 ▲0.07617.66 ▼58.9559.61 ▼1.36
Media Library /wp-admin/upload.php1,425 ▲254.27 ▲0.0596.26 ▲0.4443.59 ▲1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 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/cf7-popups/cf7-popups-class.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: popup, submission messages, success message, error message, contact form...

cf7-popups/cf7-popups.php Passed 13 tests

The entry point to "Popups - Submission Messages For Contact Form 7" version 1.0.8 is a PHP file that has certain tags in its header comment area
93 characters long description:
Useful plugin to display contact form 7 error messages, success messages in beautiful popups.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin188 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2556699
JavaScript315254
PO File1203331
CSS2004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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