Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/new-page-link/includes/data-processing.php+15
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.98ms] Passed 4 tests
A check of server-side resources used by New Page Link
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.84 ▼38.63 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.62 ▼45.06 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.40 ▼44.02 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.35 ▼100.19 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.67 ▼30.98 |
New Link /wp-admin/options-general.php?page=npl_newlink | 2.05 | 6.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for New Page Link
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.74 ▲0.37 | 2.09 ▲0.11 | 44.35 ▼3.47 |
Dashboard /wp-admin | 2,207 ▲30 | 5.55 ▼0.12 | 89.07 ▼4.47 | 40.85 ▼2.58 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.01 ▲0.05 | 35.13 ▲1.67 | 38.07 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,371 ▼156 | 16.40 ▼6.58 | 564.91 ▼68.96 | 48.74 ▲0.27 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.23 ▲0.05 | 98.89 ▼3.40 | 41.36 ▼1.75 |
New Link /wp-admin/options-general.php?page=npl_newlink | 839 | 1.96 | 22.68 | 35.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/new-page-link/includes/data-processing.php+15
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=npl_newlink
- > Notice in wp-content/plugins/new-page-link/includes/admin-options.php+32
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/new-page-link/includes/admin-options.php
- 4× 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/new-page-link/includes/data-processing.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/new-page-link/new-page-link.php:33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/new-page-link/includes/data-processing.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/new-page-link/includes/data-processing.php on line 15
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in new-page-link/assets to your readme.txt
new-page-link/new-page-link.php Passed 13 tests
The main PHP script in "New Page Link" version 2.2 is automatically included on every request by WordPress
40 characters long description:
A plugin to open your links in a new tab
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
Everything looks great! No dangerous files found in this plugin98 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 56 | 88 |
JavaScript | 1 | 5 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected