90% wp-news-in-new-tab

Code Review | WP News in New Tab

WordPress plugin WP News in New Tab scored90%from 54 tests.

About plugin

  • Plugin page: wp-news-in-new-tab
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Mar 17, 2017
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by WP News in New Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼2.62
Dashboard /wp-admin3.31 ▲0.0143.58 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0048.45 ▼4.95
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.55 ▼12.31
Media Library /wp-admin/upload.php3.24 ▲0.0034.42 ▼1.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP News in New Tab
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.40 ▲0.021.85 ▲0.1344.94 ▼0.62
Dashboard /wp-admin2,205 ▲145.85 ▼0.06108.02 ▲6.4937.52 ▼3.44
Posts /wp-admin/edit.php2,091 ▼12.08 ▲0.0640.53 ▲4.9735.52 ▲0.57
Add New Post /wp-admin/post-new.php1,530 ▼523.00 ▼0.15640.00 ▼42.3154.95 ▼4.75
Media Library /wp-admin/upload.php1,393 ▲24.21 ▲0.0193.78 ▼9.4142.51 ▼4.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

wp-news-in-new-tab/wp-news-in-new-tab.php Passed 13 tests

"WP News in New Tab" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Wordpress news new tab help Admin to open wordpress news or rss fedd open in new tab.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin16 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251912
JavaScript1034

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png17.47KB6.86KB▼ 60.73%
assets/banner-772x250.png10.63KB4.88KB▼ 54.04%
assets/icon-128x128.png7.41KB3.59KB▼ 51.60%
assets/screenshot-1.png119.00KB42.78KB▼ 64.05%
assets/screenshot-2.png118.49KB42.81KB▼ 63.87%