94% hashlibs

Code Review | HashLibs

WordPress plugin HashLibs scored 94% from 54 tests.

About plugin

  • Plugin page: hashlibs
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2+
  • WordPress version: 5.8.1
  • First release: Nov 25, 2012
  • Latest release: Nov 25, 2012
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: maxxsnake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 602 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by HashLibs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.98 ▲12.17
Dashboard /wp-admin3.06 ▲0.0147.32 ▲8.17
Posts /wp-admin/edit.php3.11 ▲0.0045.11 ▲1.50
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.77 ▼560.62
Media Library /wp-admin/upload.php3.00 ▲0.0034.88 ▲2.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for HashLibs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲21416.29 ▲0.7915.45 ▲6.0851.36 ▲4.27
Dashboard /wp-admin2,970 ▲395.89 ▼0.06146.91 ▼2.03101.78 ▼2.32
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0092.84 ▲32.1093.15 ▲4.24
Add New Post /wp-admin/post-new.php1,683 ▼018.70 ▲0.20410.00 ▲5.43108.65 ▼1.49
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.03155.34 ▼0.03109.31 ▼8.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hashlibs/hashlibs.php:32

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: page, query, hash, url, dynamic...

hashlibs/hashlibs.php 92% from 13 tests

The primary PHP file in "HashLibs" version 0.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162013
JavaScript1019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! 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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin