89% hashbuddy

Code Review | HashBuddy

WordPress plugin HashBuddy scored89%from 54 tests.

About plugin

  • Plugin page: hashbuddy
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Dec 28, 2014
  • Number of updates: 16
  • Update frequency: every 34.3 days
  • Top authors: modemlooper (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /12,819 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 gracefully, with no errors

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

This is a short check of server-side resources used by HashBuddy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.44 ▼0.40
Dashboard /wp-admin3.32 ▲0.0246.78 ▼3.52
Posts /wp-admin/edit.php3.38 ▲0.0250.29 ▲1.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.14 ▼3.40
Media Library /wp-admin/upload.php3.25 ▲0.0235.40 ▲1.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HashBuddy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.141.70 ▲0.1143.96 ▲4.77
Dashboard /wp-admin2,192 ▲155.55 ▼0.1286.83 ▼2.0839.25 ▼4.85
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0140.69 ▲4.2036.15 ▼0.36
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.73652.50 ▼33.1164.30 ▲11.40
Media Library /wp-admin/upload.php1,403 ▲64.15 ▲0.01102.76 ▲2.4240.63 ▼3.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

hashbuddy/loader.php 92% from 13 tests

The main file in "HashBuddy" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hashbuddy.php" instead of "loader.php")

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
No dangerous file extensions were detected66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2391566

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin