78% no-spam

Code Review | No Spam

WordPress plugin No Spam scored78%from 54 tests.

About plugin

  • Plugin page: no-spam
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Jun 23, 2014
  • Number of updates: 19
  • Update frequency: every 16.3 days
  • Top authors: strategio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.21ms] Passed 4 tests

An overview of server-side resources used by No Spam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.31 ▼7.17
Dashboard /wp-admin3.35 ▲0.0459.68 ▲4.00
Posts /wp-admin/edit.php3.40 ▲0.0454.94 ▲3.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.01 ▼13.39
Media Library /wp-admin/upload.php3.27 ▲0.0443.57 ▲8.74

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
no_spam_options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by No Spam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.211.97 ▲0.0942.37 ▼1.03
Dashboard /wp-admin2,195 ▲185.49 ▼0.1691.74 ▼12.1541.97 ▼6.33
Posts /wp-admin/edit.php2,103 ▲31.98 ▲0.0340.48 ▲4.4934.08 ▼4.11
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.29686.78 ▲25.2155.68 ▲1.93
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.14114.23 ▲1.4552.03 ▲7.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/no-spam/trunk/views/public.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/no-spam/trunk/views/admin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

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

no-spam/no-spam.php 85% from 13 tests

Analyzing the main PHP file in "No Spam" version 1.0.2
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin160 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP659225147
JavaScript20210
Markdown1103
CSS2020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods825.00%
▷ Public methods3093.75%
▷ Protected methods00.00%
▷ Private methods26.25%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected