93% advanced-invisible-anti-spam

Code Review | Advanced Invisible Anti-Spam

WordPress plugin Advanced Invisible Anti-Spam scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-invisibl...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 5.9.2
  • First release: Oct 19, 2014
  • Latest release: Apr 27, 2016
  • Number of updates: 20
  • Update frequency: every 27.8 days
  • Top authors: mattkeys (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active / 4,302 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼298.02ms] Passed 4 tests

A check of server-side resources used by Advanced Invisible Anti-Spam
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0452.37 ▼12.19
Dashboard /wp-admin3.45 ▲0.0433.76 ▼1.04
Posts /wp-admin/edit.php3.68 ▲0.0436.35 ▼5.48
Add New Post /wp-admin/post-new.php6.91 ▼0.0691.51 ▼1,173.37
Media Library /wp-admin/upload.php3.33 ▲0.0428.34 ▲5.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Invisible Anti-Spam
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.25 ▲0.625.76 ▼0.352.11 ▼0.73
Dashboard /wp-admin2,895 ▲346.13 ▼0.08116.60 ▼13.28156.60 ▼13.12
Posts /wp-admin/edit.php2,694 ▲103.24 ▲0.1563.99 ▲2.77144.62 ▲8.72
Add New Post /wp-admin/post-new.php1,668 ▲717.86 ▲2.31400.21 ▼18.57156.66 ▼0.97
Media Library /wp-admin/upload.php1,701 ▲35.52 ▲0.00138.68 ▼6.39183.00 ▲0.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-invisible-anti-spam/advanced-invisible-antispam.php:18

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


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: Screenshot #2 (( Registration ) The error message shown to bots, or users who do not have javascript enabled. This message is translatable, and filterable.) image not found
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === advanced-invisible-anti-spam === )
You can take inspiration from this readme.txt

advanced-invisible-anti-spam/advanced-invisible-antispam.php 92% from 13 tests

The principal PHP file in "Advanced Invisible Anti-Spam" v. 1.4.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-invisible-anti-spam.php" instead of "advanced-invisible-antispam.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin284 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods313.64%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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 images were found in this plugin