84% widget-output-filters

Code Review | Widget Output Filters

WordPress plugin Widget Output Filters scored84%from 54 tests.

About plugin

  • Plugin page: widget-output-fil...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Sep 13, 2016
  • Number of updates: 10
  • Update frequency: every 80.8 days
  • Top authors: philip.newcomer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Widget Output Filters
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.65 ▼2.70
Dashboard /wp-admin3.32 ▲0.0145.15 ▼0.77
Posts /wp-admin/edit.php3.37 ▲0.0146.32 ▲3.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.35 ▼12.60
Media Library /wp-admin/upload.php3.24 ▲0.0134.74 ▲0.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Widget Output Filters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.14 ▼0.431.76 ▲0.0839.34 ▼4.14
Dashboard /wp-admin2,195 ▲155.57 ▼0.0982.57 ▼2.7937.93 ▼6.40
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0432.93 ▼1.8833.24 ▼0.15
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▲0.00673.68 ▼1.4862.13 ▼3.36
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0295.32 ▼4.6642.79 ▼1.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/widget-output-filters/src/class.Widget_Output_Filters.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widget, output, filter, html, widgets...

widget-output-filters/widget-output-filters.php Passed 13 tests

The main file in "Widget Output Filters" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
A library which enables developers to filter the output of any WordPress widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected83 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2206541
Markdown113027
JSON10015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin