88% humans-only

Code Review | Humans Only

WordPress plugin Humans Only scored 88% from 54 tests.

About plugin

  • Plugin page: humans-only
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 5.8.1
  • First release: May 30, 2013
  • Latest release: Dec 17, 2013
  • Number of updates: 4
  • Update frequency: every 50.8 days
  • Top authors: little-apps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,000 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.90ms] Passed 4 tests

An overview of server-side resources used by Humans Only
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.75 ▲0.0321.72 ▼0.09
Dashboard /wp-admin3.08 ▲0.0345.49 ▲6.24
Posts /wp-admin/edit.php3.13 ▲0.0344.97 ▲0.84
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.64 ▼556.06
Media Library /wp-admin/upload.php3.03 ▲0.0231.62 ▼8.27
Humans Only Settings /wp-admin/options-general.php?page=humansonly-admin2.9728.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 4 new options
New WordPress options
humansonly-allow-spiders
humansonly-recaptcha-publickey
humansonly-recaptcha-privatekey
humansonly-salt

Browser metrics Passed 4 tests

Humans Only: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,214 ▼38115.66 ▲0.060.58 ▼9.821.87 ▼46.83
Dashboard /wp-admin2,978 ▲476.16 ▲0.24134.86 ▼9.14111.17 ▲2.05
Posts /wp-admin/edit.php2,741 ▲52.71 ▼0.0164.26 ▼1.8085.48 ▼5.20
Add New Post /wp-admin/post-new.php1,675 ▲17518.84 ▲0.25360.94 ▼3.17105.07 ▼5.71
Media Library /wp-admin/upload.php1,812 ▲25.05 ▲0.02141.89 ▼1.22119.65 ▼8.88
Humans Only Settings /wp-admin/options-general.php?page=humansonly-admin1,1022.0855.0674.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=humansonly-admin
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=humansonly-admin
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/humans-only/functions.php
    • > /wp-content/plugins/humans-only/index.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: block, spammers, humans only, captcha, verify...

humans-only/functions.php 92% from 13 tests

The principal PHP file in "Humans Only" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("humans-only.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin302 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP396117302

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 files were detected