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.14MB] [CPU: ▼155.22ms] Passed 4 tests
Analyzing server-side resources used by Custom Hyperlinks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 25.96 ▼9.61 |
Dashboard /wp-admin | 3.13 ▲0.07 | 46.34 ▼3.59 |
Posts /wp-admin/edit.php | 3.24 ▲0.12 | 50.10 ▲3.31 |
Add New Post /wp-admin/post-new.php | 4.71 ▼0.73 | 52.96 ▼611.00 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 38.40 ▲4.41 |
Custom Hyperlinks /wp-admin/options-general.php?page=custom-hl | 3.06 | 31.14 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Hyperlinks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 15.85 ▲0.16 | 7.17 ▼2.93 | 49.65 ▼2.45 |
Dashboard /wp-admin | 2,975 ▲44 | 5.94 ▲0.01 | 149.19 ▼9.62 | 114.10 ▼13.32 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▲0.00 | 67.24 ▲0.69 | 90.85 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.92 ▲0.13 | 376.47 ▼15.57 | 119.55 ▲7.78 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▲0.02 | 165.07 ▲5.88 | 129.00 ▼1.18 |
Custom Hyperlinks /wp-admin/options-general.php?page=custom-hl | 1,994 | 2.46 | 68.32 | 114.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=custom-hl
- > Notice in wp-content/plugins/custom-hyperlinks/admin/partials/custom-hl-admin-display.php+30
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-hyperlinks/admin/partials/custom-hl-admin-display.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=custom-hl
- > Network (severe)
wp-content/plugins/custom-hyperlinks/admin/images/form-v1-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
2 plugin tags: anchor, aoda
custom-hyperlinks/custom-hl.php 85% from 13 tests
The entry point to "Custom Hyperlinks" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-hyperlinks.php" instead of "custom-hl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,990 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 239 | 943 | 928 |
CSS | 2 | 105 | 15 | 722 |
PHP | 11 | 119 | 489 | 340 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin