84% popup-contact-form

Code Review | Popup contact form

WordPress plugin Popup contact form scored84%from 54 tests.

About plugin

  • Plugin page: popup-contact-form
  • Plugin version: 7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: May 19, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 43
  • Update frequency: every 89.5 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /84,500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.89ms] Passed 4 tests

This is a short check of server-side resources used by Popup contact form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.92 ▼3.87
Dashboard /wp-admin3.36 ▲0.0654.35 ▼0.13
Posts /wp-admin/edit.php3.41 ▲0.0654.44 ▼5.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.47 ▼6.03
Media Library /wp-admin/upload.php3.28 ▲0.0642.11 ▲4.57
Popup contact form /wp-admin/options-general.php?page=popup-contact-form/popup-contact-form.php3.3135.18

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 19 new options
New WordPress options
widget_recent-comments
widget_recent-posts
PopupContact_On_SendEmail
PopupContact_On_Homepage
PopupContact_homeurl
PopupContact_On_Captcha
can_compress_scripts
PopupContact_On_Archives
db_upgraded
PopupContact_On_Subject
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup contact form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.35 ▼0.211.64 ▼0.0142.34 ▼0.94
Dashboard /wp-admin2,199 ▲255.49 ▼0.1387.74 ▼8.0340.28 ▼3.25
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0936.18 ▼1.8033.91 ▼0.17
Add New Post /wp-admin/post-new.php1,529 ▲323.31 ▲0.47714.21 ▲89.7653.16 ▲1.25
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0299.56 ▼6.2543.67 ▼8.95
Popup contact form /wp-admin/options-general.php?page=popup-contact-form/popup-contact-form.php1,0201.9922.1827.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/popup-contact-form/popup-contact-form.php:140
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/popup-contact-form/content-setting.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: contact, popup, contact form, gopiplus

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

"Popup contact form" version 7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 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
No dangerous file extensions were detected1,202 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP34723386
PO File4148152383
JavaScript24839314
CSS11023118
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin