100% super-simple-spam-stopper

Code Review | Super Simple SPAM Stopper

WordPress plugin Super Simple SPAM Stopper scored 100% from 54 tests.

About plugin

  • Plugin page: super-simple-spam...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.4
  • WordPress version: 5.8.1
  • First release: Jun 24, 2015
  • Latest release: Jan 2, 2016
  • Number of updates: 8
  • Update frequency: every 24.9 days
  • Top authors: bgribaudo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads

Benchmarks

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.05MB] [CPU: ▼143.36ms] Passed 4 tests

Server-side resources used by Super Simple SPAM Stopper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.85 ▲11.97
Dashboard /wp-admin3.10 ▲0.0542.52 ▼15.42
Posts /wp-admin/edit.php3.19 ▲0.0854.45 ▲4.31
Add New Post /wp-admin/post-new.php5.46 ▲0.03102.97 ▼568.13
Media Library /wp-admin/upload.php3.05 ▲0.0445.03 ▲5.81
Super Simple SPAM Stopper /wp-admin/options-general.php?page=custom-anti-spam-settings3.0236.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Simple SPAM Stopper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.90 ▲0.3412.40 ▲3.3749.92 ▼3.19
Dashboard /wp-admin2,975 ▲445.90 ▼0.08160.99 ▼4.51112.56 ▼5.09
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0070.00 ▼5.0190.86 ▼4.94
Add New Post /wp-admin/post-new.php1,679 ▼418.85 ▲0.52394.06 ▼32.05121.21 ▲6.71
Media Library /wp-admin/upload.php1,812 ▲55.00 ▼0.02168.88 ▼3.66131.35 ▼10.50
Super Simple SPAM Stopper /wp-admin/options-general.php?page=custom-anti-spam-settings1,1532.0568.7589.54

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
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: spambot, anti-spam, comment, block spam, comments...

super-simple-spam-stopper/supersimplespamstopper.php 92% from 13 tests

The primary PHP file in "Super Simple SPAM Stopper" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-spam-stopper.php" instead of "supersimplespamstopper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected196 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45722196

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity9.00
▷ Maximum class complexity11.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1352.00%
▷ Protected methods00.00%
▷ Private methods1248.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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
There were not PNG files found in your plugin