94% accept-shorcodes-contact-form-7

Code Review | Accept Shortcodes - Contact Form 7

WordPress plugin Accept Shortcodes - Contact Form 7 scored 94% from 54 tests.

About plugin

  • Plugin page: accept-shorcodes-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 5.9.2
  • First release: Sep 21, 2020
  • Latest release: Sep 21, 2020
  • Number of updates: 8
  • Update frequency: every 1.4 days
  • Top authors: ekndev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 331 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼303.47ms] Passed 4 tests

An overview of server-side resources used by Accept Shortcodes - Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.06 ▼0.05
Dashboard /wp-admin3.41 ▲0.0132.51 ▼0.54
Posts /wp-admin/edit.php3.65 ▲0.0135.98 ▼9.38
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.96 ▼1,203.92
Media Library /wp-admin/upload.php3.30 ▲0.0125.56 ▼0.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Accept Shortcodes - Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.11 ▲0.147.37 ▲1.012.64 ▼0.11
Dashboard /wp-admin2,895 ▲346.12 ▼0.09118.25 ▼18.15157.09 ▲1.07
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0064.61 ▲3.96139.44 ▼0.72
Add New Post /wp-admin/post-new.php1,661 ▼5016.25 ▼4.43410.71 ▼42.24157.37 ▼4.73
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.05140.76 ▼1.54185.80 ▼0.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accept-shorcodes-contact-form-7/cf7-accept-shortcodes.php:13

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: form, custom, contact form, shortcode, contact

accept-shorcodes-contact-form-7/cf7-accept-shortcodes.php 92% from 13 tests

The primary PHP file in "Accept Shortcodes - Contact Form 7" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accept-shorcodes-contact-form-7.php" instead of "cf7-accept-shortcodes.php")

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
Success! There were no dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected