83% cloudfilt-codes

Code Review | Spam Protection, AntiSpam, reCaptcha, Stop bad bots, tor, Spam submissions, web scraping / FREE by CloudFilt

WordPress plugin Spam Protection, AntiSpam, reCaptcha, Stop bad bots, tor, Spam submissions, web scraping / FREE by CloudFilt scored83%from 54 tests.

About plugin

  • Plugin page: cloudfilt-codes
  • Plugin version: 1.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Sep 21, 2023
  • Number of updates: 105
  • Update frequency: every 11.0 days
  • Top authors: cloudfilt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /9,609 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.06MB] [CPU: ▼1.68ms] Passed 4 tests

Analyzing server-side resources used by Spam Protection, AntiSpam, reCaptcha, Stop bad bots, tor, Spam submissions, web scraping / FREE by CloudFilt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.15 ▲0.49
Dashboard /wp-admin3.37 ▲0.0745.54 ▼0.30
Posts /wp-admin/edit.php3.48 ▲0.1366.53 ▲18.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.68 ▼14.21
Media Library /wp-admin/upload.php3.29 ▲0.0639.50 ▲7.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Spam Protection, AntiSpam, reCaptcha, Stop bad bots, tor, Spam submissions, web scraping / FREE by CloudFilt
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.38 ▼1.021.63 ▲0.0640.95 ▼0.91
Dashboard /wp-admin2,227 ▲384.93 ▼0.0195.37 ▼22.1176.13 ▲31.61
Posts /wp-admin/edit.php2,116 ▲242.01 ▼0.0246.66 ▲5.4947.88 ▲11.38
Add New Post /wp-admin/post-new.php1,686 ▲14621.76 ▼1.30663.42 ▲7.5650.62 ▼3.16
Media Library /wp-admin/upload.php1,409 ▲214.12 ▼0.0596.27 ▼0.6376.72 ▲34.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cloudfilt-codes/view/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'CloudFiltCodes' not found in wp-content/plugins/cloudfilt-codes/includes/cloudFiltCodesFormHandler.php:118
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cloudfilt-codes/cloudFiltCodes.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

cloudfilt-codes/cloudFiltCodes.php 77% from 13 tests

The main PHP script in "Spam Protection, AntiSpam, reCaptcha, Stop bad bots, tor, Spam submissions, web scraping / FREE by CloudFilt" version 1.0.13 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cloudfilt-codes.php" instead of "cloudFiltCodes.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please don't use more than 140 characters for the plugin description (currently 244 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin544 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310020544

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity22.50
▷ Minimum class complexity20.00
▷ Maximum class complexity25.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cloudFiltIcon.png8.02KB1.05KB▼ 86.89%
img/cloudFiltLogo.png6.83KB3.68KB▼ 46.02%