10% spamfck

Code Review | Antispam Revolution

WordPress plugin Antispam Revolution scored10%from 54 tests.

About plugin

  • Plugin page: spamfck
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.4-4.3
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: Aug 24, 2015
  • Number of updates: 87
  • Update frequency: every 19.8 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/spamfck/antispam-revolution.php+296
    file(.htaccess): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.95MB] [CPU: ▼50.02ms] Passed 4 tests

This is a short check of server-side resources used by Antispam Revolution
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.47 ▼35.07
Dashboard /wp-admin2.05 ▼1.259.69 ▼39.99
Posts /wp-admin/edit.php2.05 ▼1.305.82 ▼41.42
Add New Post /wp-admin/post-new.php2.05 ▼3.836.58 ▼83.59
Media Library /wp-admin/upload.php2.05 ▼1.187.66 ▼21.44

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • The plugin illegally modified 2 files (1.11KB) outside of "wp-content/plugins/spamfck/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (new file) wp-admin/.htaccess
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
antispamrevolution_stats
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Antispam Revolution
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.65 ▼1.034.46 ▲2.7642.45 ▼6.93
Dashboard /wp-admin2,222 ▲344.87 ▼0.03108.38 ▲8.1141.62 ▼5.75
Posts /wp-admin/edit.php2,105 ▲191.97 ▼0.0340.10 ▲0.1937.05 ▲0.43
Add New Post /wp-admin/post-new.php1,560 ▲2718.43 ▼4.97587.89 ▼54.4260.33 ▼11.84
Media Library /wp-admin/upload.php1,407 ▲224.23 ▼0.1395.67 ▲1.1242.08 ▲1.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/spamfck/antispam-revolution.php+300
    The each() function is deprecated. This message will be suppressed on further calls
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • antispamrevolution_stats
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/spamfck/antispam-revolution.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: protection, comments, spam

spamfck/antispam-revolution.php 85% from 13 tests

The main file in "Antispam Revolution" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("spamfck.php" instead of "antispam-revolution.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 430 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected258 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15335258

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected