72% hackrepair-plugin-archiver

Code Review | The Hack Repair Guy's Plugin Archiver

WordPress plugin The Hack Repair Guy's Plugin Archiver scored72%from 54 tests.

About plugin

  • Plugin page: hackrepair-plugin...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-5.5
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Aug 20, 2020
  • Number of updates: 52
  • Update frequency: every 35.3 days
  • Top authors: deployer (94.23%)tvcnet (7.69%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /6,340 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.17ms] Passed 4 tests

Server-side resources used by The Hack Repair Guy's Plugin Archiver
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.59 ▼6.36
Dashboard /wp-admin3.60 ▲0.2548.35 ▼17.70
Posts /wp-admin/edit.php3.65 ▲0.2949.41 ▲0.20
Add New Post /wp-admin/post-new.php6.11 ▲0.2393.29 ▼4.82
Media Library /wp-admin/upload.php3.46 ▲0.2336.45 ▲1.49
Archived Plugins /wp-admin/plugins.php?page=hackrepair-plugin-archiver3.4031.28
Plugin Archiver /wp-admin/options-general.php?page=hackrepair-plugin-archiver-settings3.4230.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by The Hack Repair Guy's Plugin Archiver
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.39 ▼0.981.65 ▼0.0641.87 ▼2.71
Dashboard /wp-admin2,217 ▲295.85 ▼0.0093.09 ▼19.7641.15 ▼0.70
Posts /wp-admin/edit.php2,094 ▲82.04 ▲0.0339.24 ▲1.9535.16 ▲1.66
Add New Post /wp-admin/post-new.php1,543 ▲1023.38 ▲0.33630.54 ▼54.4759.24 ▲4.68
Media Library /wp-admin/upload.php1,399 ▲174.19 ▼0.0496.82 ▼14.3641.81 ▼2.35
Archived Plugins /wp-admin/plugins.php?page=hackrepair-plugin-archiver9012.0424.9823.97
Plugin Archiver /wp-admin/options-general.php?page=hackrepair-plugin-archiver-settings8492.0322.7430.24

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=hackrepair-plugin-archiver
    • > Warning in wp-content/plugins/hackrepair-plugin-archiver/hackrepair-plugin-archiver.php+180
    opendir(wp-content/plugins-archive-b984ed): failed to open dir: No such file or directory

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hackrepair-plugin-archiver/includes/notes.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hackrepair-plugin-archiver/hackrepair-plugin-archiver.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/hackrepair-plugin-archiver/includes/list.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: plugin archive, plugin restore, plugin backup, wordpress plugins

hackrepair-plugin-archiver/hackrepair-plugin-archiver.php 92% from 13 tests

This is the main PHP file of "The Hack Repair Guy's Plugin Archiver" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)

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
There were no executable files found in this plugin1,051 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP71332631,047
Markdown1504

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity35.40
▷ Minimum class complexity12.00
▷ Maximum class complexity63.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods59
▷ Static methods3864.41%
▷ Public methods5288.14%
▷ Protected methods58.47%
▷ Private methods23.39%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin