Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/external-link-gate/external-link-gate.php+20
require_once(wp-content/plugins/external-link-gate/includes/classes/ExternalLinkgateSettings.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.75ms] Passed 4 tests
A check of server-side resources used by External Link Gate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.04 ▲0.12 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.57 ▼14.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.80 ▼5.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.33 ▼14.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.11 ▲2.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for External Link Gate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.21 | 1.92 ▲0.32 | 44.03 ▲5.25 |
Dashboard /wp-admin | 2,189 ▲12 | 5.51 ▼0.17 | 83.77 ▼2.53 | 36.33 ▼9.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.06 | 33.13 ▼5.20 | 33.28 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.30 ▲0.14 | 675.23 ▲4.27 | 50.63 ▲2.07 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.30 ▲0.11 | 94.48 ▼2.02 | 42.27 ▼0.95 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function elg_get_options() in wp-content/plugins/external-link-gate/includes/templates/modal.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/external-link-gate/external-link-gate.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: link-gate, accessible, modal
external-link-gate/external-link-gate.php Passed 13 tests
The main file in "External Link Gate" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Create a warning for third party links
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected388 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 93 | 77 | 197 |
CSS | 1 | 11 | 0 | 116 |
JavaScript | 1 | 56 | 31 | 73 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin