10% display-authors-widget

Code Review | Display Authors Widget

WordPress plugin Display Authors Widget scored 10% from 54 tests.

About plugin

  • Plugin page: display-authors-w...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2012
  • Latest release: Jul 4, 2015
  • Number of updates: 23
  • Update frequency: every 43.7 days
  • Top authors: sami.keijonen (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 15,659 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/display-authors-widget/display-authors-widget.php+265
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.39ms] Passed 4 tests

Server-side resources used by Display Authors Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.94 ▼40.71
Dashboard /wp-admin2.05 ▼1.265.58 ▼43.91
Posts /wp-admin/edit.php2.05 ▼1.315.77 ▼40.39
Add New Post /wp-admin/post-new.php2.05 ▼3.845.91 ▼84.53
Media Library /wp-admin/upload.php2.05 ▼1.185.18 ▼28.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_display-authors-widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Authors Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.52 ▼1.041.61 ▼0.1537.54 ▼6.86
Dashboard /wp-admin2,206 ▲185.88 ▲0.84105.37 ▼8.8342.97 ▼4.70
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0538.73 ▲2.8734.33 ▼0.03
Add New Post /wp-admin/post-new.php1,534 ▲2023.24 ▲5.45612.68 ▼44.2643.33 ▼10.89
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0796.68 ▼8.0142.14 ▼0.57

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/display-authors-widget/display-authors-widget.php+265
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_display-authors-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at 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/display-authors-widget/display-authors-widget.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: multi, authors, author, role, widget-only...

display-authors-widget/display-authors-widget.php Passed 13 tests

The main PHP file in "Display Authors Widget" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Register widget to display authors by role in a sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16782148
PO File1212160
CSS10023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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