10% stylish-top-author-widget

Code Review | Author Widget

WordPress plugin Author Widget scored10%from 54 tests.

About plugin

  • Plugin page: stylish-top-autho...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2014
  • Latest release: Oct 12, 2014
  • Number of updates: 36
  • Update frequency: every 6.9 days
  • Top authors: Obaid2013 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,445 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
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/stylish-top-author-widget/widget.php+144
    Function create_function() is deprecated

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

Analyzing server-side resources used by Author Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.13 ▼38.08
Dashboard /wp-admin2.05 ▼1.265.21 ▼48.91
Posts /wp-admin/edit.php2.05 ▼1.314.83 ▼42.75
Add New Post /wp-admin/post-new.php2.05 ▼3.845.59 ▼84.38
Media Library /wp-admin/upload.php2.05 ▼1.186.09 ▼31.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_alwp
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Author Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.72 ▲0.561.74 ▼0.1342.45 ▼3.52
Dashboard /wp-admin2,212 ▲355.68 ▲0.0894.16 ▼2.7272.88 ▲28.35
Posts /wp-admin/edit.php2,120 ▲171.96 ▼0.0736.14 ▲0.3739.25 ▲5.71
Add New Post /wp-admin/post-new.php1,542 ▲1323.11 ▲0.01776.58 ▲155.0154.54 ▼1.98
Media Library /wp-admin/upload.php1,417 ▲204.10 ▼0.0794.65 ▼9.8376.78 ▲33.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/stylish-top-author-widget/widget.php+144
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_alwp
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-top-author-widget/widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-top-author-widget/widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-top-author-widget/function.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: html5, fontawesome integrated, wordpress, css3, widget...

stylish-top-author-widget/alwp.php 92% from 13 tests

The main PHP file in "Author Widget" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("stylish-top-author-widget.php" instead of "alwp.php")

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
No dangerous file extensions were detected284 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43128209
CSS171775

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
help/icon.png18.20KB0.55KB▼ 96.99%