78% hack-info

Code Review | Hack-Info

WordPress plugin Hack-Info scored78%from 54 tests.

About plugin

  • Plugin page: hack-info
  • Plugin version: 3.17
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2018
  • Latest release: Sep 5, 2023
  • Number of updates: 35
  • Update frequency: every 51.7 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Hack-Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.98 ▼2.12
Dashboard /wp-admin3.32 ▲0.0146.99 ▼2.96
Posts /wp-admin/edit.php3.37 ▲0.0147.20 ▼1.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.90 ▼3.10
Media Library /wp-admin/upload.php3.24 ▲0.0134.62 ▲0.28
Hack-Info /wp-admin/options-general.php?page=hack-info/includes/options.php3.2531.45

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables
wp_hackinfo
New WordPress options
hackinfo_db_version
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hack-Info
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.19 ▼1.111.66 ▼0.1439.00 ▼6.15
Dashboard /wp-admin2,210 ▲225.91 ▲0.02101.39 ▼14.4540.02 ▼4.52
Posts /wp-admin/edit.php2,090 ▲222.03 ▼0.0939.19 ▲2.2833.88 ▲1.57
Add New Post /wp-admin/post-new.php1,546 ▲3218.04 ▲0.41618.59 ▼54.2063.27 ▲4.16
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.1299.74 ▲0.9941.89 ▼0.33
Hack-Info /wp-admin/options-general.php?page=hack-info/includes/options.php8422.0625.8626.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • hackinfo_db_version
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hack-info/uninstall.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hack-info/includes/options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hack-info/hack-info.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hack-info/includes/init.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hack-info/includes/admin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "wpgear.xyz/hack-info/"
The official readme.txt might help

hack-info/hack-info.php Passed 13 tests

Analyzing the main PHP file in "Hack-Info" version 3.17
53 characters long description:
Ext Security. Monitoring about evil hacking attempts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected342 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP69861325
CSS12317

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin