84% pryc-wp-antyspam

Code Review | PRyC WP: AntiSPAM (without CAPTCHA)

WordPress plugin PRyC WP: AntiSPAM (without CAPTCHA) scored84%from 54 tests.

About plugin

  • Plugin page: pryc-wp-antyspam
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2015
  • Latest release: Jun 20, 2023
  • Number of updates: 36
  • Update frequency: every 75.8 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,605 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.55ms] Passed 4 tests

A check of server-side resources used by PRyC WP: AntiSPAM (without CAPTCHA)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.53 ▲2.99
Dashboard /wp-admin3.41 ▲0.1148.40 ▲0.67
Posts /wp-admin/edit.php3.53 ▲0.1745.54 ▼1.89
Add New Post /wp-admin/post-new.php5.99 ▲0.1184.08 ▼15.97
Media Library /wp-admin/upload.php3.34 ▲0.1136.89 ▲6.96
PRyC WP: AntiSPAM /wp-admin/options-general.php?page=pryc_wp_antyspam3.2831.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PRyC WP: AntiSPAM (without CAPTCHA)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.21 ▼1.172.28 ▲0.4441.79 ▲0.59
Dashboard /wp-admin2,213 ▲254.84 ▼0.06102.07 ▼13.4140.09 ▼1.48
Posts /wp-admin/edit.php2,099 ▲102.03 ▲0.0433.62 ▼5.9631.51 ▼3.42
Add New Post /wp-admin/post-new.php1,539 ▲1723.09 ▼0.05705.72 ▲98.3455.93 ▲8.18
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.0394.02 ▼2.6841.93 ▼2.21
PRyC WP: AntiSPAM /wp-admin/options-general.php?page=pryc_wp_antyspam9682.0324.6927.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=pryc_wp_antyspam
    • > Notice in wp-content/plugins/pryc-wp-antyspam/pryc-wp-antyspam.php+579
    Undefined variable: pryc_wp_antyspam_settings_show_logfile_link

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: antyspam, spam, antispam, wordpress, spambot...

pryc-wp-antyspam/pryc-wp-antyspam.php 92% from 13 tests

The primary PHP file in "PRyC WP: AntiSPAM (without CAPTCHA)" version 1.5.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin466 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1248109466

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin