84% hash-converter

Code Review | Hash Converter - Calculator

WordPress plugin Hash Converter - Calculator scored84%from 54 tests.

About plugin

  • Plugin page: hash-converter
  • Plugin version: 1.0.23
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: May 18, 2023
  • Number of updates: 34
  • Update frequency: every 58.4 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.78ms] Passed 4 tests

Analyzing server-side resources used by Hash Converter - Calculator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.85 ▼7.00
Dashboard /wp-admin3.31 ▲0.0047.83 ▲0.77
Posts /wp-admin/edit.php3.36 ▲0.0041.55 ▼9.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.65 ▼15.64
Media Library /wp-admin/upload.php3.23 ▲0.0034.73 ▲3.60

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Hash Converter - Calculator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▲0.161.61 ▼0.2743.94 ▼3.27
Dashboard /wp-admin2,192 ▲185.61 ▲0.0482.61 ▼5.8944.23 ▲4.41
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0136.33 ▼1.0932.06 ▼3.25
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.44663.61 ▲60.4560.38 ▲2.21
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.05107.80 ▲13.6045.39 ▲4.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/hash-converter/hash-converter.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: hashing, mining, calculator, hash

hash-converter/hash-converter.php 92% from 13 tests

The main PHP script in "Hash Converter - Calculator" version 1.0.23 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected4,465 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1121,6864,352
PHP12642113

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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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