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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.58ms] Passed 4 tests
This is a short check of server-side resources used by Broken Links Repair By Hexometer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.82 ▼6.45 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.09 ▼3.65 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 42.79 ▼7.01 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 84.13 ▼13.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.14 ▲2.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_hexometer_broken_links |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Broken Links Repair By Hexometer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲94 | 13.69 ▼0.69 | 1.91 ▼1.55 | 46.28 ▲3.48 |
Dashboard /wp-admin | 2,232 ▲50 | 4.89 ▼0.02 | 111.24 ▲7.18 | 39.49 ▼11.08 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.06 ▲0.05 | 37.53 ▼1.25 | 33.31 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,538 ▼0 | 23.50 ▲0.38 | 671.90 ▲10.84 | 58.74 ▲6.43 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.29 ▲0.13 | 97.93 ▼0.90 | 42.72 ▼3.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/broken-link-repair/views/layout/footer.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/broken-link-repair/inc/LinksTable.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/broken-link-repair/inc/LinksTable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function Hexometer\\plugin_dir_path() in wp-content/plugins/broken-link-repair/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Hexometer\\plugin_dir_path() in wp-content/plugins/broken-link-repair/hooks/ingest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/broken-link-repair/views/LinksTableContent.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/broken-link-repair/inc/LinksTable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function Hexometer\\plugin_dir_path() in wp-content/plugins/broken-link-repair/hooks/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Hexometer\\plugin_dir_path() in wp-content/plugins/broken-link-repair/hooks/content.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/broken-link-repair/views/layout/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/broken-link-repair/views/LoginForm.php:2
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: hexometer, repair broken links, disable bad links, fix 404 links
broken-link-repair/index.php 85% from 13 tests
"Broken Links Repair By Hexometer" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("broken-link-repair.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected660 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 73 | 18 | 360 |
JavaScript | 2 | 26 | 9 | 148 |
SVG | 1 | 0 | 1 | 95 |
CSS | 1 | 7 | 0 | 57 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 1 | 6.67% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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