83% sendpress-contact-form-7

Code Review | SendPress - Contact Form 7 Integration

WordPress plugin SendPress - Contact Form 7 Integration scored83%from 54 tests.

About plugin

  • Plugin page: sendpress-contact...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-4.5.4
  • WordPress version: 6.3.1
  • First release: May 27, 2016
  • Latest release: May 26, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: joshl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,902 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by SendPress - Contact Form 7 Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.61 ▼2.17
Dashboard /wp-admin3.31 ▼0.0350.67 ▼13.50
Posts /wp-admin/edit.php3.36 ▲0.0146.21 ▼8.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.98 ▼14.24
Media Library /wp-admin/upload.php3.23 ▲0.0135.34 ▼3.40

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for SendPress - Contact Form 7 Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.411.85 ▼0.0044.03 ▲2.72
Dashboard /wp-admin2,198 ▲275.60 ▼0.0689.08 ▲2.9140.42 ▼4.61
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0234.73 ▼0.7738.13 ▲1.57
Add New Post /wp-admin/post-new.php1,526 ▼617.34 ▼5.93648.37 ▼33.0462.35 ▼2.70
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0694.72 ▼22.4044.67 ▼5.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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
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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendpress-contact-form-7/modules/sendpress-signup.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendpress-contact-form-7/modules/sendpress-signup.php:7

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (A view of the SendPress Signup Tag Generator) image required
The official readme.txt might help

sendpress-contact-form-7/sendpress-contact-form-7.php 85% from 13 tests

"SendPress - Contact Form 7 Integration" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin277 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2131120277

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected