84% comment-links-new-tab

Code Review | Comment Links New Tab

WordPress plugin Comment Links New Tab scored84%from 54 tests.

About plugin

  • Plugin page: comment-links-new...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Mar 6, 2019
  • Latest release: Oct 11, 2020
  • Number of updates: 5
  • Update frequency: every 117.0 days
  • Top authors: crucialinnovations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.00ms] Passed 4 tests

Server-side resources used by Comment Links New Tab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.35 ▼8.06
Dashboard /wp-admin3.40 ▲0.0943.59 ▼4.31
Posts /wp-admin/edit.php3.51 ▲0.1547.07 ▲2.90
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.04 ▼0.02
Media Library /wp-admin/upload.php3.32 ▲0.0935.77 ▲0.39
Coms New Tab /wp-admin/options-general.php?page=comment-links-new-tab-settings3.3034.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
cruinnv_wp_comments_new_tab_css_options
widget_theysaidso_widget
can_compress_scripts
cruinnv_wp_comments_new_tab_rel
cruinnv_wp_comments_new_tab_title
cruinnv_wp_comments_new_tab_target
cruinnv_wp_comments_new_tab_whitelisted_one
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comment Links New Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.52 ▼1.098.03 ▲6.2140.31 ▼5.31
Dashboard /wp-admin2,202 ▲225.56 ▼0.1284.46 ▼3.7072.77 ▲24.94
Posts /wp-admin/edit.php2,110 ▲71.94 ▼0.0644.50 ▲10.4531.03 ▼2.04
Add New Post /wp-admin/post-new.php1,546 ▲2023.14 ▼0.52758.52 ▲44.2868.17 ▲8.60
Media Library /wp-admin/upload.php1,401 ▼24.18 ▲0.0194.44 ▼7.6372.71 ▲29.47
Coms New Tab /wp-admin/options-general.php?page=comment-links-new-tab-settings1,2052.0425.3030.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-links-new-tab/include/settings.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-links-new-tab/include/settings.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/comment-links-new-tab/include/admin-help.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: links, open in new tab, open in new window, comment, wordpress comment links...

comment-links-new-tab/comment-links-new-tab.php 92% from 13 tests

The main file in "Comment Links New Tab" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 193 characters long)

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
Good job! No executable or dangerous file extensions detected966 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5457582
CSS206276
JavaScript4118108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions24
▷ Named functions24100.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
6 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png44.77KB20.78KB▼ 53.59%
screenshot-1.png31.17KB16.86KB▼ 45.92%
screenshot-3.png31.20KB15.65KB▼ 49.83%
include/images/cruinnv-com-links-new-tab-admin.png0.69KB1.10KB0.00%
include/images/cruinnv-com-links-new-tab-target.png0.40KB0.50KB0.00%