84% belingo-antispam

Code Review | belingoAntiSpam

WordPress plugin belingoAntiSpam scored84%from 54 tests.

About plugin

  • Plugin page: belingo-antispam
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2022
  • Latest release: Aug 25, 2023
  • Number of updates: 12
  • Update frequency: every 20.6 days
  • Top authors: belingo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.53ms] Passed 4 tests

A check of server-side resources used by belingoAntiSpam
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.76 ▲0.68
Dashboard /wp-admin3.33 ▲0.0245.31 ▼5.07
Posts /wp-admin/edit.php3.38 ▲0.0248.09 ▲1.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.86 ▼14.75
Media Library /wp-admin/upload.php3.25 ▲0.0237.62 ▲1.26
Add New /wp-admin/post-new.php?post_type=bas_blocked_cf73.3449.45
Blocked applications CF7 /wp-admin/edit.php?post_type=bas_blocked_cf73.2936.29

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by belingoAntiSpam
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.22 ▼1.552.58 ▲1.0142.20 ▲2.76
Dashboard /wp-admin2,233 ▲484.86 ▼0.0096.73 ▼5.7035.15 ▼9.52
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0438.78 ▲2.0336.86 ▲0.71
Add New Post /wp-admin/post-new.php1,557 ▲3823.04 ▼0.03668.29 ▲79.9657.81 ▲5.42
Media Library /wp-admin/upload.php1,415 ▲274.19 ▲0.02106.39 ▲10.6843.89 ▼0.11
Add New /wp-admin/post-new.php?post_type=bas_blocked_cf72,1507.57188.5464.61
Blocked applications CF7 /wp-admin/edit.php?post_type=bas_blocked_cf71,0772.0229.7928.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/belingo-antispam/belingoantispam.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: cf7 antispam, antispam

belingo-antispam/belingoantispam.php 85% from 13 tests

The entry point to "belingoAntiSpam" version 1.2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("belingo-antispam.php" instead of "belingoantispam.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2212276
PHP122970

PHP code Passed 2 tests

A short review 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.43
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin