10% new-page-link

Code Review | New Page Link

WordPress plugin New Page Link scored10%from 54 tests.

About plugin

  • Plugin page: new-page-link
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Oct 2, 2015
  • Latest release: Aug 19, 2021
  • Number of updates: 52
  • Update frequency: every 41.4 days
  • Top authors: pluspt2001 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /10,213 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.84 ▼38.63
Dashboard /wp-admin2.05 ▼1.267.62 ▼45.06
Posts /wp-admin/edit.php2.05 ▼1.316.40 ▼44.02
Add New Post /wp-admin/post-new.php2.05 ▼3.846.35 ▼100.19
Media Library /wp-admin/upload.php2.05 ▼1.186.67 ▼30.98
New Link /wp-admin/options-general.php?page=npl_newlink2.056.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.74 ▲0.372.09 ▲0.1144.35 ▼3.47
Dashboard /wp-admin2,207 ▲305.55 ▼0.1289.07 ▼4.4740.85 ▼2.58
Posts /wp-admin/edit.php2,112 ▲152.01 ▲0.0535.13 ▲1.6738.07 ▲2.04
Add New Post /wp-admin/post-new.php1,371 ▼15616.40 ▼6.58564.91 ▼68.9648.74 ▲0.27
Media Library /wp-admin/upload.php1,412 ▲94.23 ▲0.0598.89 ▼3.4041.36 ▼1.75
New Link /wp-admin/options-general.php?page=npl_newlink8391.9622.6835.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

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: The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP4385688
JavaScript15010

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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