Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼10.96ms] Passed 4 tests
A check of server-side resources used by External & Affiliate Links Processor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.50 ▼2.54 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.30 ▼16.99 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.25 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.25 ▼23.90 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 31.85 ▲0.19 |
External & Affiliate Links Processor /wp-admin/options-general.php?page=dh_nf_option_page | 3.35 | 35.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for External & Affiliate Links Processor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.47 ▼0.09 | 1.66 ▲0.02 | 37.13 ▼5.30 |
Dashboard /wp-admin | 2,213 ▲22 | 5.89 ▲0.97 | 96.60 ▼8.44 | 40.13 ▲2.71 |
Posts /wp-admin/edit.php | 2,099 ▲13 | 2.05 ▼0.01 | 36.58 ▼3.56 | 36.86 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 17.64 ▼0.63 | 665.18 ▲58.09 | 61.90 ▲4.53 |
Media Library /wp-admin/upload.php | 1,401 ▲22 | 4.19 ▼0.01 | 96.16 ▼14.18 | 41.85 ▼1.69 |
External & Affiliate Links Processor /wp-admin/options-general.php?page=dh_nf_option_page | 1,332 | 2.22 | 41.78 | 67.68 |
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 were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/external-links-nofollow-open-in-new-tab-favicon/admin.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/external-links-nofollow-open-in-new-tab-favicon/nofollow-external-link.php:30
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
external-links-nofollow-open-in-new-tab-favicon/nofollow-external-link.php 77% from 13 tests
The principal PHP file in "External & Affiliate Links Processor" v. 1.5.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("external-links-nofollow-open-in-new-tab-favicon.php" instead of "nofollow-external-link.php")
- Plugin Name: Please shorten the plugin name (currently 90 characters long instead of max. 70)
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
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
There were no executable files found in this plugin866 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 172 | 161 | 853 |
CSS | 2 | 1 | 1 | 10 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 30.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 70.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/extlink.png | 0.19KB | 0.14KB | ▼ 29.08% |