79% contact-form-7-response-message-popup

Code Review | Contact Form 7 Response Message Popup

WordPress plugin Contact Form 7 Response Message Popup scored79%from 54 tests.

About plugin

  • Plugin page: contact-form-7-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Jul 9, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: prince374 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /7,006 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
Installer ran successfully

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

A check of server-side resources used by Contact Form 7 Response Message Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.86 ▼2.23
Dashboard /wp-admin3.32 ▼0.0249.05 ▼9.96
Posts /wp-admin/edit.php3.37 ▲0.0243.59 ▼0.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.09 ▼16.58
Media Library /wp-admin/upload.php3.24 ▲0.0233.61 ▼0.92
CF7 Response Message Popup /wp-admin/admin.php?page=cf7_rmp_settings3.1832.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 Response Message Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17714.02 ▼0.3511.34 ▲9.4342.13 ▼2.90
Dashboard /wp-admin2,214 ▲264.86 ▲0.01104.94 ▲5.2143.40 ▲0.72
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0235.50 ▼4.6832.11 ▲0.90
Add New Post /wp-admin/post-new.php1,546 ▲422.82 ▲4.66649.60 ▲9.8758.40 ▼0.53
Media Library /wp-admin/upload.php1,399 ▲114.21 ▼0.0497.20 ▼1.6843.86 ▼0.14
CF7 Response Message Popup /wp-admin/admin.php?page=cf7_rmp_settings7752.0224.1826.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=cf7_rmp_settings
    • > Notice in wp-content/plugins/contact-form-7-response-message-popup/contact-form-7-response-message-popup.php+53
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contact-form-7-response-message-popup/contact-form-7-response-message-popup.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: email, form, contact form 7, contact form 7 response message popup, contact form...

contact-form-7-response-message-popup/contact-form-7-response-message-popup.php Passed 13 tests

Analyzing the main PHP file in "Contact Form 7 Response Message Popup" version 1.0
49 characters long description:
Contact Form 7 Response Message in Fancybox Popup

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,235 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript128923844
CSS25218317
PHP1121774

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fancybox/fancy_shadow_se.png0.34KB0.48KB0.00%
fancybox/fancy_nav_left.png1.41KB1.64KB0.00%
fancybox/fancybox-y.png0.17KB0.24KB0.00%
fancybox/fancy_shadow_ne.png0.34KB0.48KB0.00%
fancybox/fancy_shadow_n.png0.10KB0.19KB0.00%