84% humanstxt

Code Review | Humans TXT

WordPress plugin Humans TXT scored84%from 54 tests.

About plugin

  • Plugin page: humanstxt
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: May 14, 2011
  • Latest release: Jun 10, 2019
  • Number of updates: 239
  • Update frequency: every 12.4 days
  • Top authors: tillkruess (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /21,968 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.43ms] 75% from 4 tests

Analyzing server-side resources used by Humans TXT
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 518.32ms on /wp-admin/options-general.php?page=humanstxt)
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.60 ▼0.15
Dashboard /wp-admin3.50 ▲0.1954.34 ▲3.03
Posts /wp-admin/edit.php3.61 ▲0.2550.59 ▲4.86
Add New Post /wp-admin/post-new.php6.08 ▲0.1984.70 ▼4.55
Media Library /wp-admin/upload.php3.42 ▲0.1938.70 ▲3.39
Humans TXT /wp-admin/options-general.php?page=humanstxt3.73518.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Humans TXT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.77 ▲0.181.72 ▼0.0543.81 ▼0.23
Dashboard /wp-admin2,207 ▲255.80 ▼0.05101.58 ▼8.0939.07 ▲0.86
Posts /wp-admin/edit.php2,104 ▲122.04 ▲0.0439.14 ▲2.5534.37 ▼1.76
Add New Post /wp-admin/post-new.php1,533 ▼023.31 ▲0.07689.88 ▲28.0556.43 ▼10.06
Media Library /wp-admin/upload.php1,403 ▲184.23 ▲0.0594.23 ▼5.9042.61 ▼2.21
Humans TXT /wp-admin/options-general.php?page=humanstxt1,2201.7634.9637.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=humanstxt
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'msie')" "TypeError: Cannot read properties of undefined (reading 'msie')\n at HTMLTextAreaElement.\u003Canonymous> (/wp-content/plugins/humanstxt/options.js?ver=1.3.1:157:18)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1:2:1594)\n at $.fn.humansAutoGrow (/wp-content/plugins/humanstxt/options.js?ver=1.3.1:151:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/humanstxt/options.js?ver=1.3.1:5:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=humanstxt
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

humanstxt/humanstxt.php Passed 13 tests

The primary PHP file in "Humans TXT" version 1.3.1 is used by WordPress to initiate all plugin functionality
103 characters long description:
Credit the people behind your website in your humans.txt file. Easy to edit, directly within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,297 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42355621,056
JavaScript13419141
CSS1184100

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions68
▷ Named functions68100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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 are no PNG files in this plugin