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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.59 ▼6.36 |
Dashboard /wp-admin | 3.60 ▲0.25 | 48.35 ▼17.70 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 49.41 ▲0.20 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 93.29 ▼4.82 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.45 ▲1.49 |
Archived Plugins /wp-admin/plugins.php?page=hackrepair-plugin-archiver | 3.40 | 31.28 |
Plugin Archiver /wp-admin/options-general.php?page=hackrepair-plugin-archiver-settings | 3.42 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.39 ▼0.98 | 1.65 ▼0.06 | 41.87 ▼2.71 |
Dashboard /wp-admin | 2,217 ▲29 | 5.85 ▼0.00 | 93.09 ▼19.76 | 41.15 ▼0.70 |
Posts /wp-admin/edit.php | 2,094 ▲8 | 2.04 ▲0.03 | 39.24 ▲1.95 | 35.16 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.38 ▲0.33 | 630.54 ▼54.47 | 59.24 ▲4.68 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.19 ▼0.04 | 96.82 ▼14.36 | 41.81 ▼2.35 |
Archived Plugins /wp-admin/plugins.php?page=hackrepair-plugin-archiver | 901 | 2.04 | 24.98 | 23.97 |
Plugin Archiver /wp-admin/options-general.php?page=hackrepair-plugin-archiver-settings | 849 | 2.03 | 22.74 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 133 | 263 | 1,047 |
Markdown | 1 | 5 | 0 | 4 |
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 code | 0.37 |
Average class complexity | 35.40 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 38 | 64.41% |
▷ Public methods | 52 | 88.14% |
▷ Protected methods | 5 | 8.47% |
▷ Private methods | 2 | 3.39% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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