90% cf7-advance-security

Code Review | Contact Form 7 Spam Killer

WordPress plugin Contact Form 7 Spam Killer scored90%from 54 tests.

About plugin

  • Plugin page: cf7-advance-security
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 28
  • Update frequency: every 105.1 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /14,386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Contact Form 7 Spam Killer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.57 ▼3.42
Dashboard /wp-admin3.31 ▲0.0045.96 ▼2.67
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼5.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.90 ▲7.77
Media Library /wp-admin/upload.php3.23 ▲0.0036.97 ▲2.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 Spam Killer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.16 ▼1.431.90 ▼0.0141.24 ▼6.51
Dashboard /wp-admin2,206 ▲184.85 ▼0.06109.90 ▼2.5741.16 ▲1.36
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0141.21 ▲1.4037.33 ▲1.24
Add New Post /wp-admin/post-new.php1,542 ▲2818.62 ▲1.12624.53 ▼33.9065.61 ▲7.70
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0194.46 ▼11.7040.24 ▼3.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: captcha, wpcf7, prevent spam, contact form seven, stop spam...

cf7-advance-security/cf7-advance-security.php Passed 13 tests

The main file in "Contact Form 7 Spam Killer" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Prevent unwanted spam mail from your inbox. A permanent solution for from 7 spam emails issue.

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
Good job! No executable or dangerous file extensions detected242 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25862230
JavaScript10111
CSS1041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot.png32.53KB14.89KB▼ 54.23%
images/screenshot-2.png126.28KB42.97KB▼ 65.98%