89% default-new-window-link-opener

Code Review | Default Checked Link

WordPress plugin Default Checked Link scored89%from 54 tests.

About plugin

  • Plugin page: default-new-windo...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 17, 2016
  • Latest release: Nov 20, 2017
  • Number of updates: 31
  • Update frequency: every 12.3 days
  • Top authors: eballo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Default Checked Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.49 ▲4.29
Dashboard /wp-admin3.31 ▼0.0443.46 ▼16.09
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.94 ▼9.30
Media Library /wp-admin/upload.php3.24 ▲0.0032.72 ▲0.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Default Checked Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.65 ▼0.742.24 ▲0.5242.06 ▼3.46
Dashboard /wp-admin2,209 ▲235.80 ▲0.8698.19 ▼11.9939.37 ▼3.14
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.01 ▲3.5436.29 ▲1.23
Add New Post /wp-admin/post-new.php1,542 ▲918.14 ▼5.27661.46 ▼5.4369.22 ▲13.07
Media Library /wp-admin/upload.php1,382 ▼04.21 ▼0.0695.09 ▼1.4641.89 ▲0.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

default-new-window-link-opener/DefaultCheckedLink.php 92% from 13 tests

"Default Checked Link" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("default-new-window-link-opener.php" instead of "DefaultCheckedLink.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP281415

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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 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 were not PNG files found in your plugin