73% send-denial-anti-spam

Code Review | Send Denial

WordPress plugin Send Denial scored73%from 54 tests.

About plugin

  • Plugin page: send-denial-anti-...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Oct 10, 2023
  • Number of updates: 14
  • Update frequency: every 19.9 days
  • Top authors: giulng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,104 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.92ms] Passed 4 tests

Analyzing server-side resources used by Send Denial
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3143.93 ▼1.38
Dashboard /wp-admin3.43 ▲0.0957.47 ▼8.39
Posts /wp-admin/edit.php3.55 ▲0.1954.16 ▲4.77
Add New Post /wp-admin/post-new.php6.01 ▲0.1391.22 ▼6.66
Media Library /wp-admin/upload.php3.36 ▲0.1343.88 ▲7.85
Send Denial /wp-admin/options-general.php?page=send-denial3.3035.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_sede_logs
New WordPress options
sede_plugin_options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Send Denial
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.54 ▼0.845.60 ▲3.4437.77 ▼4.91
Dashboard /wp-admin2,210 ▲255.86 ▼0.00105.86 ▼17.3139.44 ▼6.11
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0340.34 ▲2.3036.43 ▲1.41
Add New Post /wp-admin/post-new.php1,536 ▲323.15 ▼0.13706.24 ▲15.8152.06 ▼1.21
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.02100.43 ▼9.2343.26 ▼6.82
Send Denial /wp-admin/options-general.php?page=send-denial8642.0226.1231.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_sede_logs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • sede_plugin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=send-denial
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP Passed 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
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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

send-denial-anti-spam/send-denial.php 85% from 13 tests

"Send Denial" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("send-denial-anti-spam.php" instead of "send-denial.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,030 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP1732270856
PO File1212489
JavaScript2111980
SVG1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity4.56
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods50
▷ Static methods1122.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected