68% popup-notifier-for-contact-form-7

Code Review | Popup Message Notifier for Contact Form 7

WordPress plugin Popup Message Notifier for Contact Form 7 scored68%from 54 tests.

About plugin

  • Plugin page: popup-notifier-fo...
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.5-5.7
  • WordPress version: 6.3.1
  • First release: Mar 11, 2021
  • Latest release: May 24, 2021
  • Number of updates: 12
  • Update frequency: every 6.2 days
  • Top authors: filippobenozzi (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /3,932 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.90ms] Passed 4 tests

A check of server-side resources used by Popup Message Notifier for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.01 ▼4.46
Dashboard /wp-admin3.34 ▲0.0445.21 ▼6.59
Posts /wp-admin/edit.php3.39 ▲0.0448.98 ▲4.87
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.81 ▲6.35
Media Library /wp-admin/upload.php3.27 ▲0.0439.68 ▲2.60
CF7 Popup Settings /wp-admin/options-general.php?page=popupnotifiercf73.2432.76

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
popupnotifiercf7_option_customTextButton
popupnotifiercf7_option_customSeconds
popupnotifiercf7_option_customTextButtonBackground
theysaidso_admin_options
popupnotifiercf7_option_isAutoClose
popupnotifiercf7_option_isShowIcon
widget_recent-posts
widget_recent-comments
popupnotifiercf7_option_isConfirmButton
...

Browser metrics Passed 4 tests

Checking browser requirements for Popup Message Notifier for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.57 ▼0.904.99 ▲3.4140.59 ▲0.40
Dashboard /wp-admin2,229 ▲375.29 ▼0.60101.57 ▼5.6839.90 ▼2.62
Posts /wp-admin/edit.php2,117 ▲282.27 ▲0.2342.52 ▲5.8533.53 ▼2.22
Add New Post /wp-admin/post-new.php1,531 ▲1123.46 ▲0.36614.50 ▼12.7734.12 ▼19.34
Media Library /wp-admin/upload.php1,405 ▲144.49 ▲0.2693.69 ▼5.1641.36 ▼1.96
CF7 Popup Settings /wp-admin/options-general.php?page=popupnotifiercf71,0352.4943.4526.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'popupnotifiercf7_on_deactivation' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • popupnotifiercf7_option_isConfirmButton
    • popupnotifiercf7_option_isAutoClose
    • popupnotifiercf7_option_customTextButton
    • popupnotifiercf7_option_customSeconds
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 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 register_activation_hook() in wp-content/plugins/popup-notifier-for-contact-form-7/popupnotifiercf7.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=popupnotifiercf7
    • > Network (severe)
    wp-content/plugins/popup-notifier-for-contact-form-7/wp-color-picker-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Popup Message Notifier for Contact Form 7" version 1.2.6
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("popup-notifier-for-contact-form-7.php" instead of "popupnotifiercf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected209 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21627153
JavaScript28656

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin