90% forget-spam-comment

Code Review | Forget Spam Comment

WordPress plugin Forget Spam Comment scored90%from 54 tests.

About plugin

  • Plugin page: forget-spam-comment
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Nov 20, 2023
  • Number of updates: 49
  • Update frequency: every 23.2 days
  • Top authors: thegulshankumar (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

5,000+ active /34,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.35ms] Passed 4 tests

Analyzing server-side resources used by Forget Spam Comment
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.58 ▼5.18
Dashboard /wp-admin3.32 ▼0.0347.30 ▼15.59
Posts /wp-admin/edit.php3.37 ▲0.0144.33 ▲1.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.77 ▼12.93
Media Library /wp-admin/upload.php3.24 ▲0.0131.39 ▲0.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Forget Spam Comment
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6114.33 ▼0.041.68 ▼0.0442.47 ▼0.22
Dashboard /wp-admin2,195 ▲155.61 ▼0.0587.99 ▼15.9539.17 ▼1.99
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0335.63 ▼4.4932.63 ▼2.62
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.05603.69 ▼112.0657.82 ▼0.61
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0396.83 ▼2.4342.23 ▼1.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: spam, comments, gdpr, stop spam, firewall...

forget-spam-comment/forget-spam-comment.php Passed 13 tests

The main file in "Forget Spam Comment" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
The ultimate solution to stop spam comments in default commenting system of WordPress.

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
Success! There were no dangerous files found in this plugin226 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File43240164
PHP1133362

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin