84% seriously-simple-spam-blocker

Code Review | Seriously Simple Spam Blocker

WordPress plugin Seriously Simple Spam Blocker scored84%from 54 tests.

About plugin

  • Plugin page: seriously-simple-...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: May 11, 2016
  • Number of updates: 37
  • Update frequency: every 33.8 days
  • Top authors: voldemortensen (54.05%)hlashbrooke (48.65%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /4,068 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.05MB] [CPU: ▼6.02ms] Passed 4 tests

This is a short check of server-side resources used by Seriously Simple Spam Blocker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.53 ▼10.11
Dashboard /wp-admin3.36 ▲0.0553.42 ▲1.48
Posts /wp-admin/edit.php3.41 ▲0.0552.56 ▼1.70
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.77 ▼11.15
Media Library /wp-admin/upload.php3.28 ▲0.0536.96 ▼1.12
Seriously Simple Spam Blocker /wp-admin/tools.php?page=sssb3.2436.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Seriously Simple Spam Blocker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.33 ▼0.021.76 ▼0.3043.10 ▲0.96
Dashboard /wp-admin2,202 ▲255.66 ▲0.0492.61 ▲1.5843.21 ▼0.90
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0234.27 ▼8.8734.23 ▼3.67
Add New Post /wp-admin/post-new.php1,535 ▲123.24 ▼0.05636.97 ▲18.4351.16 ▲1.68
Media Library /wp-admin/upload.php1,401 ▲14.32 ▲0.12104.55 ▲1.0145.60 ▼1.40
Seriously Simple Spam Blocker /wp-admin/tools.php?page=sssb8712.0226.2532.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seriously-simple-spam-blocker/spam.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seriously-simple-spam-blocker/admin/page.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: security, simple, spam, block, protection

seriously-simple-spam-blocker/seriously-simple-spam-blocker.php 92% from 13 tests

"Seriously Simple Spam Blocker" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin189 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43219189

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.64
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%
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
PNG images were not found in this plugin