Benchmarks
Plugin footprint 83% from 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.08MB] [CPU: ▼4.52ms] Passed 4 tests
Analyzing server-side resources used by External Links in New Window / New Tab
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.08 ▼4.39 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.14 ▼8.38 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.04 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 90.82 ▼4.52 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.91 ▼0.79 |
External Links /wp-admin/options-general.php?page=external_links_in_new_windows | 3.29 | 30.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
external_links_in_new_windows_ignore |
external_links_in_new_windows_force |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for External Links in New Window / New Tab
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.36 ▲0.01 | 2.96 ▲1.28 | 40.27 ▼2.85 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▼0.02 | 91.33 ▼4.22 | 41.11 ▼5.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 39.32 ▲3.46 | 36.45 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.86 ▲0.82 | 651.38 ▼3.97 | 52.08 ▼12.21 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.21 ▼0.01 | 98.23 ▼1.18 | 39.47 ▼2.73 |
External Links /wp-admin/options-general.php?page=external_links_in_new_windows | 889 | 2.01 | 23.56 | 37.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/open-external-links-in-a-new-window/open-external-links-in-a-new-window.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: external links, target new, blank window, links, tabs...
open-external-links-in-a-new-window/open-external-links-in-a-new-window.php Passed 13 tests
"External Links in New Window / New Tab" version 1.44's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Opens all external links in a new window. XHTML Strict compliant and search engine optimized (SEO).
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 detected720 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 92 | 41 | 539 |
CSS | 1 | 29 | 4 | 167 |
JavaScript | 1 | 6 | 4 | 14 |
PHP code Passed 2 tests
Analyzing 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.13 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wf-flyout/icons/ucp.png | 16.30KB | 2.35KB | ▼ 85.58% |
wf-flyout/icons/wp-reset.png | 3.11KB | 2.28KB | ▼ 26.85% |
wf-flyout/icons/external.png | 2.79KB | 1.63KB | ▼ 41.59% |