89% anti-spam-reloaded

Code Review | Anti-spam Reloaded

WordPress plugin Anti-spam Reloaded scored89%from 54 tests.

About plugin

  • Plugin page: anti-spam-reloaded
  • Plugin version: 6.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9
  • WordPress version: 6.3.1
  • First release: Apr 23, 2020
  • Latest release: Jan 25, 2022
  • Number of updates: 16
  • Update frequency: every 40.1 days
  • Top authors: kudlav (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active /10,926 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.52ms] Passed 4 tests

This is a short check of server-side resources used by Anti-spam Reloaded
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.85 ▲1.61
Dashboard /wp-admin3.36 ▲0.0648.70 ▲0.92
Posts /wp-admin/edit.php3.47 ▲0.1247.09 ▲0.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.38 ▼13.47
Media Library /wp-admin/upload.php3.28 ▲0.0535.26 ▼1.61
Anti-spam Reloaded /wp-admin/options-general.php?page=anti-spam-reloaded3.2530.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Anti-spam Reloaded
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.361.89 ▲0.2344.27 ▲1.28
Dashboard /wp-admin2,196 ▲255.54 ▼0.0489.41 ▼8.6239.17 ▲3.45
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0236.84 ▼16.6934.74 ▼0.87
Add New Post /wp-admin/post-new.php1,529 ▼023.18 ▲0.07683.32 ▲25.0059.31 ▲8.02
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.03104.11 ▲3.0145.00 ▼1.68
Anti-spam Reloaded /wp-admin/options-general.php?page=anti-spam-reloaded8211.9926.6726.57

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 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • antispamrel_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

anti-spam-reloaded/anti-spam.php 92% from 13 tests

"Anti-spam Reloaded" version 6.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("anti-spam-reloaded.php" instead of "anti-spam.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin400 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP57324315
PO File1161945
JavaScript29940

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected