84% popup-for-contact-form-7

Code Review | Popup for Contact Form 7

WordPress plugin Popup for Contact Form 7 scored 84% from 54 tests.

About plugin

  • Plugin page: popup-for-contact...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-4.9.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Mar 28, 2018
  • Number of updates: 18
  • Update frequency: every 46.8 days
  • Top authors: aiyaz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 26,368 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Popup for Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.97 ▼5.85
Dashboard /wp-admin3.31 ▲0.0042.63 ▼6.89
Posts /wp-admin/edit.php3.36 ▲0.0045.53 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.16 ▼18.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.57 ▲4.01
Popup Settings /wp-admin/admin.php?page=pfcf-setting-page3.0021.71

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Popup for 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,811 ▲7613.34 ▼1.021.48 ▼0.3140.50 ▼3.87
Dashboard /wp-admin2,206 ▲185.91 ▲1.04102.77 ▼4.0336.81 ▼8.25
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.17 ▲0.8335.70 ▲3.98
Add New Post /wp-admin/post-new.php1,519 ▲523.19 ▲5.44570.65 ▼128.1754.35 ▲0.86
Media Library /wp-admin/upload.php1,385 ▼34.30 ▲0.1099.18 ▼10.9642.06 ▼7.47
Popup Settings /wp-admin/admin.php?page=pfcf-setting-page280.440.173.91

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=pfcf-setting-page
    • > Network (severe)
    wp-admin/admin.php?page=pfcf-setting-page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: message, submit form, contact form 7, contact form message, form popup...

popup-for-contact-form-7/popup-for-contact-form7.php 92% from 13 tests

The entry point to "Popup for Contact Form 7" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popup-for-contact-form-7.php" instead of "popup-for-contact-form7.php")

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 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12715226
CSS2253132
JavaScript26433

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin