90% humanity

Code Review | Humanity

WordPress plugin Humanity scored90%from 54 tests.

About plugin

  • Plugin page: humanity
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2017
  • Latest release: Apr 1, 2017
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: tleen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.80ms] Passed 4 tests

An overview of server-side resources used by Humanity
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.87 ▼5.38
Dashboard /wp-admin3.32 ▲0.0250.76 ▲4.86
Posts /wp-admin/edit.php3.37 ▲0.0147.54 ▼1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.92 ▼13.16
Media Library /wp-admin/upload.php3.24 ▲0.0134.90 ▼3.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Humanity
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.291.82 ▼0.3842.40 ▼4.29
Dashboard /wp-admin2,195 ▲185.62 ▼0.0587.06 ▼9.0542.68 ▲1.04
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0236.47 ▼1.3035.81 ▼1.49
Add New Post /wp-admin/post-new.php1,526 ▼1123.21 ▲5.05681.20 ▲15.8955.20 ▼16.13
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0397.36 ▼7.3445.19 ▲1.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: humans, humanstxt

humanity/humanity.php Passed 13 tests

"Humanity" version 0.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
Serve up an existing humans.txt file from theme or WP root

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1324981

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
PNG images were not found in this plugin