10% the-winnower-publisher

Code Review | The Winnower Publisher

WordPress plugin The Winnower Publisher scored10%from 54 tests.

About plugin

  • Plugin page: the-winnower-publ...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 19
  • Update frequency: every 6.4 days
  • Top authors: reconbot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,491 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/the-winnower-publisher/widget.php+4
    Function create_function() is deprecated

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

A check of server-side resources used by The Winnower Publisher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.77 ▼5.17
Dashboard /wp-admin3.31 ▲0.0046.08 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0043.29 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.99 ▼8.97
Media Library /wp-admin/upload.php3.23 ▲0.0031.82 ▼3.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_winnower_badge
db_upgraded
winnower_publisher_settings
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for The Winnower Publisher
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.431.73 ▲0.0343.55 ▲0.15
Dashboard /wp-admin2,206 ▲155.79 ▲0.7297.35 ▼14.7639.62 ▼6.35
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0533.30 ▼3.9737.15 ▲3.61
Add New Post /wp-admin/post-new.php1,528 ▲1423.20 ▲5.57661.18 ▲2.0452.42 ▼6.45
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0992.59 ▼11.9641.75 ▼4.92

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
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • winnower_publisher_settings
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_winnower_badge
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/the-winnower-publisher/winnower-publisher.php
    • > /wp-content/plugins/the-winnower-publisher/class-piklist-checker.php
    • > /wp-content/plugins/the-winnower-publisher/save-hooks.php
    • > /wp-content/plugins/the-winnower-publisher/parts/settings/winnower-help.php
    • > /wp-content/plugins/the-winnower-publisher/cite-link.php
    • > /wp-content/plugins/the-winnower-publisher/activation-hooks.php
    • > /wp-content/plugins/the-winnower-publisher/admin-pages.php
    • > /wp-content/plugins/the-winnower-publisher/widget.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function piklist() in wp-content/plugins/the-winnower-publisher/parts/meta-boxes/winnower-metabox.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function piklist() in wp-content/plugins/the-winnower-publisher/parts/settings/winnower-settings.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

the-winnower-publisher/winnower-publisher.php 92% from 13 tests

Analyzing the main PHP file in "The Winnower Publisher" version 1.7
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-winnower-publisher.php" instead of "winnower-publisher.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin836 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP1015140836

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity5.00
▷ Maximum class complexity23.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected