67% no-spam-at-all

Code Review | No Spam At All

WordPress plugin No Spam At All scored67%from 54 tests.

About plugin

  • Plugin page: no-spam-at-all
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Sep 25, 2019
  • Number of updates: 11
  • Update frequency: every 157.8 days
  • Top authors: De paragon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,009 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.59ms] Passed 4 tests

An overview of server-side resources used by No Spam At All
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1541.07 ▲3.72
Dashboard /wp-admin3.48 ▲0.1354.09 ▼4.21
Posts /wp-admin/edit.php3.60 ▲0.2344.69 ▼0.97
Add New Post /wp-admin/post-new.php6.08 ▲0.1992.19 ▼0.88
Media Library /wp-admin/upload.php3.40 ▲0.1737.62 ▲4.48
No Spam Settings /wp-admin/options-general.php?page=nsaa_display_settings_page3.3733.46
Spam Comment List /wp-admin/options-general.php?page=nsaa_spam_comment_list_page3.3732.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 37 new files
Database: 1 new table, 9 new options
New tables
wp_nsaa_xed_comments
New WordPress options
nsaa_com_token
nsaa_schedule_token
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
nsaa_xed_ips_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

No Spam At All: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23713.63 ▼1.036.29 ▲4.6133.90 ▼5.00
Dashboard /wp-admin2,303 ▲1295.98 ▲0.3288.00 ▲2.8944.18 ▲2.99
Posts /wp-admin/edit.php2,117 ▲172.35 ▲0.4040.19 ▲5.0332.56 ▼7.39
Add New Post /wp-admin/post-new.php1,541 ▲1523.21 ▼0.51633.81 ▼33.8567.68 ▲15.03
Media Library /wp-admin/upload.php1,420 ▲204.51 ▲0.29101.03 ▲4.2143.33 ▲2.27
No Spam Settings /wp-admin/options-general.php?page=nsaa_display_settings_page9221.8824.7727.15
Spam Comment List /wp-admin/options-general.php?page=nsaa_spam_comment_list_page8651.8528.5029.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_nsaa_xed_comments
  • This plugin does not fully uninstall, leaving 9 options in the database
    • db_upgraded
    • widget_recent-comments
    • nsaa_schedule_token
    • theysaidso_admin_options
    • can_compress_scripts
    • nsaa_com_token
    • nsaa_xed_ips_db_version
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/no-spam-at-all/admin/NSConfiguration.php:157
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/no-spam-at-all/core/NSAction.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/core/NSScheduler.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/NSAA_language_maker_Kulasi.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/no-spam-at-all/admin/NSListAllCommentPage.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/core/NSDashboard.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=nsaa_spam_comment_list_page
    • > Network (severe)
    wp-content/plugins/No-spam-at-all/assets/img/delete.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please describe screenshot #4 in no-spam-at-all/assets to your readme.txt
  • Donate link: Please fix this invalid url: "3HPrLAAqc4fYiuKeviD61JKRGhHmpVKixB"
You can look at the official readme.txt

no-spam-at-all/no_spam_at_all.php 85% from 13 tests

The primary PHP file in "No Spam At All" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("no-spam-at-all.php" instead of "no_spam_at_all.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)

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
Everything looks great! No dangerous files found in this plugin1,430 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP1334125830
JavaScript36115291
CSS25822225
PO File1384284

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.36
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods68
▷ Static methods710.29%
▷ Public methods68100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/delete.png9.67KB4.48KB▼ 53.69%
assets/img/good.png1.20KB0.39KB▼ 67.16%
assets/img/settings.png5.87KB2.66KB▼ 54.70%