94% new-tab-always

Code Review | New Tab Always

WordPress plugin New Tab Always scored 94% from 54 tests.

About plugin

  • Plugin page: new-tab-always
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 28, 2016
  • Latest release: Oct 28, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: whyisjake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,422 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.00ms] Passed 4 tests

A check of server-side resources used by New Tab Always
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1247.36 ▲22.66
Dashboard /wp-admin3.06 ▲0.0153.33 ▲8.42
Posts /wp-admin/edit.php3.11 ▲0.0149.05 ▼2.18
Add New Post /wp-admin/post-new.php5.42 ▼0.01101.17 ▼572.01
Media Library /wp-admin/upload.php3.00 ▲0.0033.77 ▲1.78

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for New Tab Always
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8216.20 ▲0.5910.48 ▲0.3649.65 ▼8.56
Dashboard /wp-admin2,970 ▲395.91 ▼0.07180.12 ▲17.87113.74 ▼4.50
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0168.62 ▼9.6692.10 ▼9.88
Add New Post /wp-admin/post-new.php1,683 ▲10218.14 ▲0.58445.81 ▼8.28122.39 ▼1.25
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01180.66 ▲6.13120.10 ▼5.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/new-tab-always/new-tab-always.php:30

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Always CLicked) image missing
The official readme.txt might help

new-tab-always/new-tab-always.php Passed 13 tests

This is the main PHP file of "New Tab Always" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Ensure that the new tab is always clicked.

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
There were no executable files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP182216
Markdown1405

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.14KB11.52KB▼ 72.66%