Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/no-external-links/no-external-links.php+131
Undefined index: old_name
Server metrics [RAM: ▼0.23MB] [CPU: ▼264.86ms] Passed 4 tests
An overview of server-side resources used by WP No External Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 42.43 ▲20.63 |
Dashboard /wp-admin | 3.17 ▲0.11 | 47.73 ▲10.25 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 45.84 ▲2.11 |
Add New Post /wp-admin/post-new.php | 4.14 ▼1.29 | 49.47 ▼1,063.64 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 33.83 ▼8.14 |
No External Links /wp-admin/options-general.php?page=no-external-links/no-external-links-options.php | 3.07 | 30.49 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_nel_mask_links |
wp_nel_links_stats |
New WordPress options |
---|
no_external_links |
Browser metrics Passed 4 tests
WP No External Links: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,655 ▲73 | 15.76 ▲0.29 | 8.73 ▼0.72 | 49.16 ▲5.17 |
Dashboard /wp-admin | 2,929 ▲73 | 5.90 ▲0.09 | 146.18 ▲6.67 | 144.80 ▲43.53 |
Posts /wp-admin/edit.php | 2,727 ▲21 | 2.68 ▼0.01 | 69.05 ▲0.74 | 98.31 ▲8.04 |
Add New Post /wp-admin/post-new.php | 1,693 ▲36 | 18.99 ▲0.16 | 414.23 ▲24.86 | 120.37 ▲6.08 |
Media Library /wp-admin/upload.php | 1,719 ▼53 | 4.99 ▼0.04 | 132.20 ▼28.78 | 135.64 ▲17.12 |
No External Links /wp-admin/options-general.php?page=no-external-links/no-external-links-options.php | 1,233 | 2.09 | 58.35 | 83.18 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- no_external_links
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/no-external-links/no-external-links-custom-parser.sample.php
- > /wp-content/plugins/no-external-links/no-external-links.php
- > /wp-content/plugins/no-external-links/no-external-links-options.php
- > /wp-content/plugins/no-external-links/no-external-links-parser.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Contributors: Contributors not specified
no-external-links/no-external-links.php Passed 13 tests
The principal PHP file in "WP No External Links" v. 1.0.2 is loaded by WordPress automatically on each request
41 characters long description:
Convert all external links into internal.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,195 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 77 | 69 | 741 |
PO File | 2 | 152 | 304 | 454 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
externallink.png | 0.17KB | 0.16KB | ▼ 4.65% |