78% wpcf7-stop-words

Code Review | WPCF7 Stop words

WordPress plugin WPCF7 Stop words scored 78% from 54 tests.

About plugin

  • Plugin page: wpcf7-stop-words
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2016
  • Latest release: Sep 8, 2016
  • Number of updates: 12
  • Update frequency: every 3.4 days
  • Top authors: socialmedialtd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 609 total downloads

Benchmarks

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
Install script ran successfully

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

Server-side resources used by WPCF7 Stop words
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.60 ▼3.10
Dashboard /wp-admin3.31 ▲0.0047.07 ▲0.97
Posts /wp-admin/edit.php3.36 ▲0.0046.01 ▼3.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.76 ▼14.32
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▲1.52

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WPCF7 Stop words
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.441.75 ▼0.0241.69 ▲4.63
Dashboard /wp-admin2,206 ▲184.84 ▼0.08113.73 ▼1.7643.36 ▲0.89
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0240.24 ▼1.8835.52 ▼1.13
Add New Post /wp-admin/post-new.php1,533 ▲1923.24 ▲5.47681.74 ▲44.9751.29 ▼6.07
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0097.02 ▼4.7441.00 ▼4.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpcf7-stop-words/social-media-wpcf7-stop-words.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpcf7-stop-words/blocked-messages-page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: form validation, contact form 7, antispam

wpcf7-stop-words/social-media-wpcf7-stop-words.php 92% from 13 tests

Analyzing the main PHP file in "WPCF7 Stop words" version 1.1.3
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpcf7-stop-words.php" instead of "social-media-wpcf7-stop-words.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2298123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin