10% contact-form-7-popup-response

Code Review | Contact Form 7 Popup Response

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

About plugin

  • Plugin page: contact-form-7-po...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jul 12, 2014
  • Latest release: Jul 12, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: huseyinbabal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,036 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/contact-form-7-popup-response/contact-form-7-popup-response.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Contact_Form_7_Popup_Response has a deprecated constructor

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

Analyzing server-side resources used by Contact Form 7 Popup Response
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.64 ▼5.93
Dashboard /wp-admin3.31 ▲0.0049.33 ▲2.80
Posts /wp-admin/edit.php3.36 ▲0.0046.18 ▼0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.21 ▼5.64
Media Library /wp-admin/upload.php3.23 ▲0.0033.93 ▲3.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form 7 Popup Response
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼1.161.74 ▲0.0341.99 ▼2.34
Dashboard /wp-admin2,206 ▲185.84 ▲0.9397.06 ▼15.7236.72 ▼6.20
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0533.42 ▼6.8233.87 ▼2.38
Add New Post /wp-admin/post-new.php1,544 ▲2418.07 ▼4.98612.06 ▼48.5763.09 ▲4.89
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0396.14 ▼3.9143.55 ▼1.67

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/contact-form-7-popup-response/contact-form-7-popup-response.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === contact-form-7-popup-response === )
The official readme.txt is a good inspiration

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

The entry point to "Contact Form 7 Popup Response" version 1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Displays Contact Form 7 response in popup

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101656
CSS141130
JavaScript1061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
colorbox/images/controls.png1.59KB1.67KB0.00%