83% advanced-invisible-anti-spam

Code Review | Advanced Invisible Anti-Spam

WordPress plugin Advanced Invisible Anti-Spam scored83%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: 6.3.1
  • 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

500+ active /4,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.08ms] Passed 4 tests

A check of server-side resources used by Advanced Invisible Anti-Spam
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0842.99 ▲1.77
Dashboard /wp-admin3.42 ▲0.0849.51 ▼2.92
Posts /wp-admin/edit.php3.53 ▲0.1454.50 ▲2.13
Add New Post /wp-admin/post-new.php6.00 ▲0.0798.36 ▲3.27
Media Library /wp-admin/upload.php3.34 ▲0.0738.19 ▼0.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
aia_previous_field_key
widget_recent-posts
aia_current_key
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Invisible Anti-Spam
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.67 ▲0.151.54 ▼0.6643.01 ▼4.67
Dashboard /wp-admin2,198 ▲305.64 ▲0.0589.06 ▼13.4937.76 ▼7.49
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0339.98 ▲1.5135.10 ▼5.57
Add New Post /wp-admin/post-new.php1,528 ▲223.20 ▲0.13599.73 ▼94.7348.33 ▼5.09
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.0898.62 ▼10.5647.87 ▼3.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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
  • 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)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • 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 missing
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === advanced-invisible-anti-spam === )
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

The entry point to "Advanced Invisible Anti-Spam" version 1.4.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected284 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP57645259
JavaScript14025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic 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
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin