84% contact-form-7-shortcode-enabler

Code Review | Contact Form 7 Shortcode Enabler

WordPress plugin Contact Form 7 Shortcode Enabler scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-sh...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Mar 17, 2018
  • Number of updates: 16
  • Update frequency: every 68.8 days
  • Top authors: TZ Media (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active /59,339 total downloads


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.00MB] [CPU: ▼2.59ms] Passed 4 tests

Analyzing server-side resources used by Contact Form 7 Shortcode Enabler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0041.43 ▼0.80
Dashboard /wp-admin3.35 ▲0.0049.75 ▼1.69
Posts /wp-admin/edit.php3.40 ▲0.0049.09 ▼2.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0095.42 ▼4.63
Media Library /wp-admin/upload.php3.27 ▲0.0035.97 ▼1.89

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form 7 Shortcode Enabler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.481.74 ▼0.3339.16 ▼8.79
Dashboard /wp-admin2,195 ▲215.67 ▲0.0984.13 ▼10.7438.48 ▼1.36
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0236.96 ▼2.7138.95 ▼0.22
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.19612.47 ▼89.4562.10 ▲6.98
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0199.23 ▼13.0543.37 ▼5.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix 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/contact-form-7-shortcode-enabler/contact-form-7-shortcode-enabler.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: contact form 7, cf7, shortcodes, shortcode

contact-form-7-shortcode-enabler/contact-form-7-shortcode-enabler.php Passed 13 tests

This is the main PHP file of "Contact Form 7 Shortcode Enabler" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
This plugin enables the usage of external shortcuts inside Contact Form 7 Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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 are no PNG files in this plugin