84% hum

Code Review | Hum

WordPress plugin Hum scored 84% from 54 tests.

About plugin

  • Plugin page: hum
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2011
  • Latest release: Sep 1, 2023
  • Number of updates: 31
  • Update frequency: every 148.4 days
  • Top authors: willnorris (87.1%)pfefferle (16.13%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active / 9,922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.70ms] Passed 4 tests

Server-side resources used by Hum
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.77 ▼1.74
Dashboard /wp-admin3.40 ▲0.0945.63 ▼4.04
Posts /wp-admin/edit.php3.51 ▲0.1643.74 ▼5.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.90 ▼11.91
Media Library /wp-admin/upload.php3.32 ▲0.0938.06 ▲2.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Hum: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.66 ▼1.011.76 ▼0.0641.10 ▼0.95
Dashboard /wp-admin2,206 ▲144.85 ▼0.05109.04 ▲3.6437.69 ▼8.00
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0238.29 ▼2.1435.51 ▲0.63
Add New Post /wp-admin/post-new.php1,687 ▲17322.24 ▲4.55577.82 ▼89.6848.44 ▼8.28
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0299.80 ▲2.5140.81 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hum/hum.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: diso, shortlink, whistle

hum/hum.php Passed 13 tests

"Hum" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Personal URL shortener for WordPress

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
Good job! No executable or dangerous file extensions detected317 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP260189316
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin