78% ellipsis-human-presence-technology

Code Review | Human Presence – Stop Form Spam Without ReCaptcha

WordPress plugin Human Presence – Stop Form Spam Without ReCaptcha scored78%from 54 tests.

About plugin

  • Plugin page: ellipsis-human-pr...
  • Plugin version: 3.4.47
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Nov 17, 2023
  • Number of updates: 150
  • Update frequency: every 19.7 days
  • Top authors: humanpresence (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /20,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼3.33ms] Passed 4 tests

An overview of server-side resources used by Human Presence – Stop Form Spam Without ReCaptcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6038.85 ▼0.60
Dashboard /wp-admin3.88 ▲0.5343.59 ▼19.02
Posts /wp-admin/edit.php3.93 ▲0.5749.59 ▲2.90
Add New Post /wp-admin/post-new.php6.48 ▲0.5991.74 ▲7.23
Media Library /wp-admin/upload.php3.80 ▲0.5736.93 ▲3.42

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
wp-human-presence
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
wp-human-presence-upgrade-3-4-6

Browser metrics Passed 4 tests

Checking browser requirements for Human Presence – Stop Form Spam Without ReCaptcha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲21913.64 ▼0.4357.69 ▲55.8929.34 ▼14.07
Dashboard /wp-admin2,253 ▲765.59 ▼0.0599.70 ▲5.0751.41 ▲6.28
Posts /wp-admin/edit.php2,173 ▲702.10 ▲0.0939.14 ▲0.1742.96 ▲2.66
Add New Post /wp-admin/post-new.php1,505 ▼2116.92 ▼5.86565.42 ▼119.6747.76 ▼9.93
Media Library /wp-admin/upload.php1,473 ▲734.25 ▼0.00103.26 ▼2.6143.87 ▼0.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • wp-human-presence-upgrade-3-4-6
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 19× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/fluent-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/happy-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/formidable-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/classes/class-hpres-auto-protect.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/classes/class-hpres-settings.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/ninja-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/gravity-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/wordpress-comments.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/classes/class-hpres-forms.php
    • > /wp-content/plugins/ellipsis-human-presence-technology/integrations/quform-forms.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ellipsis-human-presence-technology/templates/options-account.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function human_presence() in wp-content/plugins/ellipsis-human-presence-technology/templates/options-modal.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function human_presence() in wp-content/plugins/ellipsis-human-presence-technology/templates/options-home.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ellipsis-human-presence-technology/templates/options-connect.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ellipsis-human-presence-technology/templates/options-page-wrapper.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ellipsis-human-presence-technology/wp-human-presence.php:196
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ellipsis-human-presence-technology/templates/license-activation-modal.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ellipsis-human-presence-technology/templates/protected-forms-table.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

ellipsis-human-presence-technology/wp-human-presence.php 85% from 13 tests

Analyzing the main PHP file in "Human Presence – Stop Form Spam Without ReCaptcha" version 3.4.47
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ellipsis-human-presence-technology.php" instead of "wp-human-presence.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,017 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP274129512,449
CSS1028506
JavaScript11550
SVG20012

PHP code Passed 2 tests

This is a short overview 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.47
Average class complexity21.60
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods152
▷ Static methods10166.45%
▷ Public methods14394.08%
▷ Protected methods00.00%
▷ Private methods95.92%
Functions17
▷ Named functions211.76%
▷ Anonymous functions1588.24%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin