68% contact-form-7-with-chatwork

Code Review | Contact Form 7 with ChatWork

WordPress plugin Contact Form 7 with ChatWork scored68%from 54 tests.

About plugin

  • Plugin page: contact-form-7-wi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 17, 2014
  • Latest release: Apr 25, 2017
  • Number of updates: 8
  • Update frequency: every 114.9 days
  • Top authors: izuchy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,888 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.96MB] [CPU: ▼35.78ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form 7 with ChatWork
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.32 ▼6.94
Dashboard /wp-admin2.99 ▼0.3529.70 ▼32.97
Posts /wp-admin/edit.php2.99 ▼0.3625.56 ▼21.54
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.67 ▼81.66
Media Library /wp-admin/upload.php2.99 ▼0.2326.10 ▼6.70
ChatWork連携設定 /wp-admin/options-general.php?page=contact-form-7-with-chatwork/contact-form-7-chatwork.php3.0023.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 with ChatWork
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.57 ▼0.821.70 ▼0.3043.64 ▲0.43
Dashboard /wp-admin2,219 ▲185.80 ▲0.88104.18 ▼5.7542.73 ▼3.18
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0536.43 ▲1.1838.20 ▲4.77
Add New Post /wp-admin/post-new.php1,557 ▲1218.21 ▼5.06642.48 ▼36.8547.41 ▼8.24
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.0495.72 ▼17.0146.78 ▲1.01
ChatWork連携設定 /wp-admin/options-general.php?page=contact-form-7-with-chatwork/contact-form-7-chatwork.php8362.0526.3873.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=contact-form-7-with-chatwork/contact-form-7-chatwork.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-with-chatwork/contact-form-7-chatwork.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

contact-form-7-with-chatwork/contact-form-7-chatwork.php 92% from 13 tests

This is the main PHP file of "Contact Form 7 with ChatWork" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-7-with-chatwork.php" instead of "contact-form-7-chatwork.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17976

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin