84% wp-widget-extentions

Code Review | WordPress Default Widget Extension

WordPress plugin WordPress Default Widget Extension scored84%from 54 tests.

About plugin

  • Plugin page: wp-widget-extentions
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-5.6.1
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Feb 14, 2021
  • Number of updates: 63
  • Update frequency: every 27.4 days
  • Top authors: miiitaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,693 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.82ms] Passed 4 tests

A check of server-side resources used by WordPress Default Widget Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1944.70 ▲6.81
Dashboard /wp-admin3.51 ▲0.2050.55 ▼0.24
Posts /wp-admin/edit.php3.62 ▲0.2648.52 ▼0.45
Add New Post /wp-admin/post-new.php6.09 ▲0.2086.25 ▼2.14
Media Library /wp-admin/upload.php3.43 ▲0.2035.89 ▼0.44

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
wp-widget-extentions
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Default Widget Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.53 ▼1.221.64 ▼0.1241.73 ▼6.60
Dashboard /wp-admin2,222 ▲344.85 ▼1.06112.25 ▼4.2541.94 ▼3.31
Posts /wp-admin/edit.php2,102 ▲132.06 ▲0.0434.44 ▼1.3134.19 ▲0.01
Add New Post /wp-admin/post-new.php1,527 ▲1317.65 ▲0.19665.66 ▼4.6052.43 ▼4.35
Media Library /wp-admin/upload.php1,404 ▲134.19 ▼0.0195.09 ▲0.8948.66 ▲7.53

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-calendar.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-categories.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-widget-extentions/wp-widget-extentions.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-recent-comments.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-tag-cloud.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-text.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-archives.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-nav-menu.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-meta.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function unregister_widget() in wp-content/plugins/wp-widget-extentions/includes/wp-widget-extensions-search.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Archives Widget( Added: Type, Order By, Number of archives to show )), #2 (Categories Widget( Added: Sort By, Order By, Exclude )), #3 (Meta Widget( Added: Checked, Custom Post RSS )), #4 (Tag Cloud Widget( Added: Font Size, Font Unit, Display Format,Number of tags to show, Separate Text, Sort By, Order By )), #5 (Page Widget( Added: Hierarchy ))
You can look at the official readme.txt

wp-widget-extentions/wp-widget-extentions.php Passed 13 tests

The principal PHP file in "WordPress Default Widget Extension" v. 2.1.3 is loaded by WordPress automatically on each request
57 characters long description:
Plug-ins that extend the standard of the widget function.

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
No dangerous file extensions were detected1,581 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP162919691,483
PO File1425698

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.00
▷ Minimum class complexity5.00
▷ Maximum class complexity39.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods5574.32%
▷ Protected methods00.00%
▷ Private methods1925.68%
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

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png78.16KB26.35KB▼ 66.28%
screenshot-1.png65.00KB22.54KB▼ 65.32%
screenshot-5.png40.86KB14.18KB▼ 65.29%
screenshot-3.png62.37KB21.59KB▼ 65.38%
screenshot-4.png86.99KB30.27KB▼ 65.20%