90% comment-runner

Code Review | Spam Protection, Anti-Spam, Comment Runner by IRunStuff.com

WordPress plugin Spam Protection, Anti-Spam, Comment Runner by IRunStuff.com scored90%from 54 tests.

About plugin

  • Plugin page: comment-runner
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.7.2
  • WordPress version: 6.3.1
  • First release: May 20, 2021
  • Latest release: Aug 17, 2021
  • Number of updates: 12
  • Update frequency: every 7.7 days
  • Top authors: irunstuff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.91ms] Passed 4 tests

Analyzing server-side resources used by Spam Protection, Anti-Spam, Comment Runner by IRunStuff.com
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.36 ▼4.63
Dashboard /wp-admin3.31 ▼0.0450.06 ▼13.66
Posts /wp-admin/edit.php3.36 ▲0.0049.45 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.27 ▼9.81
Media Library /wp-admin/upload.php3.23 ▲0.0043.63 ▲8.52

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Spam Protection, Anti-Spam, Comment Runner by IRunStuff.com
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.19 ▼1.164.75 ▲2.8943.93 ▼0.03
Dashboard /wp-admin2,209 ▲215.91 ▲0.01100.77 ▼5.2336.19 ▼6.96
Posts /wp-admin/edit.php2,089 ▼02.09 ▲0.0533.03 ▼2.4434.64 ▼2.31
Add New Post /wp-admin/post-new.php1,542 ▲2318.41 ▼4.62619.54 ▼51.8155.51 ▲0.14
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0798.34 ▼3.9643.82 ▼3.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: free-plugin, anti-spam, comments, antispam, spam

comment-runner/comment-runner.php 92% from 13 tests

Analyzing the main PHP file in "Spam Protection, Anti-Spam, Comment Runner by IRunStuff.com" version 1.2.3
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/locale")

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 plugin49 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162930
CSS13112
Markdown1707

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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