10% widget-fixer

Code Review | Widget Fixer

WordPress plugin Widget Fixer scored10%from 54 tests.

About plugin

  • Plugin page: widget-fixer
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Apr 8, 2013
  • Number of updates: 12
  • Update frequency: every 4.9 days
  • Top authors: Infragistics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /975 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/widget-fixer/includes/widget-fixer-functions.php+20
    Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/widget-fixer/includes/widget-fixer-functions.php:20
    Stack trace:
    #0 wp-content/plugins/widget-fixer/widget-fixer.php(30): initialize_mysql()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

This is a short check of server-side resources used by Widget Fixer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.19 ▼5.31
Dashboard /wp-admin3.31 ▲0.0043.88 ▼2.24
Posts /wp-admin/edit.php3.36 ▲0.0045.31 ▼1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.72 ▼12.63
Media Library /wp-admin/upload.php3.23 ▲0.0044.82 ▲9.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widget Fixer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.44 ▲0.041.59 ▲0.0740.73 ▲0.79
Dashboard /wp-admin2,192 ▲155.62 ▲0.0290.79 ▲2.2640.42 ▲0.55
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0139.16 ▲3.8135.24 ▲3.51
Add New Post /wp-admin/post-new.php1,528 ▲223.31 ▲0.29647.33 ▼5.9672.94 ▲17.93
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0092.86 ▼18.8944.85 ▼2.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/widget-fixer/widget-fixer-cli.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/widget-fixer/includes/widget-fixer-functions.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === widget-fixer === )
The official readme.txt might help

widget-fixer/widget-fixer.php 92% from 13 tests

The main PHP script in "Widget Fixer" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32922166

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin