89% new-tab-redirect-plus

Code Review | New Tab Redirect Plus

WordPress plugin New Tab Redirect Plus scored89%from 54 tests.

About plugin

  • Plugin page: new-tab-redirect-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Jun 6, 2020
  • Number of updates: 7
  • Update frequency: every 39.4 days
  • Top authors: jay_patel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.16ms] Passed 4 tests

Server-side resources used by New Tab Redirect Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼4.17
Dashboard /wp-admin3.32 ▲0.0243.15 ▼6.27
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▼1.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.73 ▼4.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.58 ▼0.05
New Tab Redirect Plus /wp-admin/options-general.php?page=ntrpp-plugin3.2430.44

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for New Tab Redirect Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.28 ▲0.051.59 ▼0.0438.35 ▼6.26
Dashboard /wp-admin2,205 ▲335.64 ▼0.0890.57 ▼8.4441.31 ▼2.31
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0539.62 ▲4.6235.02 ▼3.46
Add New Post /wp-admin/post-new.php1,543 ▲818.29 ▼0.11596.12 ▼20.7960.73 ▼12.64
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.0495.85 ▼1.4847.58 ▲5.54
New Tab Redirect Plus /wp-admin/options-general.php?page=ntrpp-plugin8812.1623.3027.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

new-tab-redirect-plus/new-tab-redirect-plus.php 92% from 13 tests

The primary PHP file in "New Tab Redirect Plus" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected264 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1110333264

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin