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
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.08ms] Passed 4 tests
An overview of server-side resources used by Open External Links In New Windows
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.00 ▼7.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.59 ▼18.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.32 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.87 ▲1.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.06 ▼2.45 |
Open External Links In New Windows /wp-admin/options-general.php?page=open-external-links-in-new-windows | 3.22 | 27.84 |
Server storage [IO: ▲0.00MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Open External Links In New Windows
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.47 ▲0.07 | 2.31 ▲0.56 | 43.88 ▼2.87 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.02 | 96.55 ▼17.39 | 36.88 ▼6.28 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.05 | 39.27 ▲3.38 | 35.46 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲12 | 23.38 ▲0.26 | 590.73 ▼96.15 | 70.14 ▲20.27 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.29 ▲0.05 | 91.60 ▼8.43 | 40.18 ▼4.58 |
Open External Links In New Windows /wp-admin/options-general.php?page=open-external-links-in-new-windows | 798 | 2.02 | 25.18 | 31.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/open-external-links-in-new-window/oelinw_options.php
- 1× 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/open-external-links-in-new-window/open-external-links-in-new-windows.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: external urls, external websites, open in new window, external links
open-external-links-in-new-window/open-external-links-in-new-windows.php 92% from 13 tests
Analyzing the main PHP file in "Open External Links In New Windows" version 1.0.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("open-external-links-in-new-window.php" instead of "open-external-links-in-new-windows.php")
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
There were no executable files found in this plugin27 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 3 | 10 | 26 |
JavaScript | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin