84% wp-antispambot

Code Review | WP-AntiSpambot

WordPress plugin WP-AntiSpambot scored 84% from 54 tests.

About plugin

  • Plugin page: wp-antispambot
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2013
  • Latest release: Mar 14, 2013
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: dustyf (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 2,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by WP-AntiSpambot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.53 ▼12.18
Dashboard /wp-admin3.31 ▲0.0046.24 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0048.37 ▼0.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.68 ▼8.64
Media Library /wp-admin/upload.php3.23 ▲0.0034.88 ▼0.09

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP-AntiSpambot: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.41 ▼0.981.94 ▲0.0241.45 ▼1.64
Dashboard /wp-admin2,206 ▲185.84 ▼0.03109.02 ▼8.9646.00 ▲3.64
Posts /wp-admin/edit.php2,089 ▲32.13 ▲0.0940.80 ▲3.8136.28 ▲3.83
Add New Post /wp-admin/post-new.php1,542 ▲1418.09 ▼0.44623.57 ▼35.1156.69 ▼5.86
Media Library /wp-admin/upload.php1,391 ▲94.26 ▲0.0697.90 ▼1.9641.64 ▲0.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-antispambot/wp-antispambot.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-antispambot === )
You can take inspiration from this readme.txt

wp-antispambot/wp-antispambot.php Passed 13 tests

"WP-AntiSpambot" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
A shortcode to encode emails in your content area using the WP antispambot function

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
Everything looks great! No dangerous files found in this plugin8 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1195
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin