84% view-site-in-new-tab

Code Review | Visit Site In New Tab

WordPress plugin Visit Site In New Tab scored 84% from 54 tests.

About plugin

  • Plugin page: view-site-in-new-tab
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Feb 3, 2014
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: Master Farzad (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Visit Site In New Tab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.86 ▼4.46
Dashboard /wp-admin3.31 ▲0.0044.46 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0047.30 ▲4.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.74 ▼5.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▼2.09

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Visit Site In New Tab: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.141.82 ▼0.0943.31 ▼1.29
Dashboard /wp-admin2,203 ▲155.80 ▲0.9398.63 ▼15.3538.78 ▼11.54
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0238.94 ▲1.5539.23 ▲4.42
Add New Post /wp-admin/post-new.php1,514 ▼2017.77 ▼5.38690.99 ▲4.2256.98 ▲0.05
Media Library /wp-admin/upload.php1,391 ▼04.17 ▲0.0098.18 ▼7.9141.00 ▼5.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 shallow check 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 | 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× 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/view-site-in-new-tab/visit-site-in-new-tab.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: open site in new tab, plugin for new tab, new tab plugin, new tab for site link, new tab...

view-site-in-new-tab/visit-site-in-new-tab.php 92% from 13 tests

This is the main PHP file of "Visit Site In New Tab" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("view-site-in-new-tab.php" instead of "visit-site-in-new-tab.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11813

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin