10% news-in-stack-widget

Code Review | News In Stack Widget

WordPress plugin News In Stack Widget scored 10% from 54 tests.

About plugin

  • Plugin page: news-in-stack-widget
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Mar 5, 2015
  • Number of updates: 10
  • Update frequency: every 41.2 days
  • Top authors: eugenbobrowski (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 1,887 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php+450
    Function create_function() is deprecated

Server metrics [RAM: ▼1.81MB] [CPU: ▼55.53ms] Passed 4 tests

An overview of server-side resources used by News In Stack Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.297.53 ▼33.86
Dashboard /wp-admin2.19 ▼1.115.60 ▼42.49
Posts /wp-admin/edit.php2.20 ▼1.166.75 ▼39.72
Add New Post /wp-admin/post-new.php2.19 ▼3.696.14 ▼106.06
Media Library /wp-admin/upload.php2.19 ▼1.036.68 ▼25.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_news-in-stack-widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for News In Stack Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.052.01 ▲0.1242.84 ▼1.35
Dashboard /wp-admin2,203 ▲125.80 ▼0.1094.95 ▼6.2138.29 ▼4.62
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0136.01 ▼0.1232.33 ▼2.20
Add New Post /wp-admin/post-new.php1,539 ▲623.30 ▲0.18637.39 ▼32.1059.85 ▲9.22
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0297.01 ▼3.2545.15 ▲1.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php+450
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_news-in-stack-widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Default stack view), #2 (Customized view), #3 (Minimazed view), #4 (The widget configuration dialog.)
You can look at the official readme.txt

news-in-stack-widget/news-in-stack-widget.php Passed 13 tests

The entry point to "News In Stack Widget" version 1.3.1 is a PHP file that has certain tags in its header comment area
95 characters long description:
Adds a widget that can display recent posts from multiple categories or from custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected424 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP215577424

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity35.50
▷ Minimum class complexity31.00
▷ Maximum class complexity40.00
Average method complexity7.90
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.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
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png66.00KB23.25KB▼ 64.77%
screenshot-1.png49.75KB21.20KB▼ 57.38%
screenshot-3.png11.59KB5.36KB▼ 53.79%
screenshot-4.png26.57KB10.36KB▼ 61.02%