10% awebsome-online-registered-users-widget

Code Review | Awebsome! Online Registered Users Widget

WordPress plugin Awebsome! Online Registered Users Widget scored10%from 54 tests.

About plugin

  • Plugin page: awebsome-online-r...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2011
  • Latest release: Aug 27, 2012
  • Number of updates: 5
  • Update frequency: every 116.2 days
  • Top authors: raulillana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /12,384 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/awebsome-online-registered-users-widget/awebsome-oruw.php+17
    Function create_function() is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼58.72ms] Passed 4 tests

A check of server-side resources used by Awebsome! Online Registered Users Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.81 ▼46.50
Dashboard /wp-admin2.18 ▼1.126.58 ▼45.36
Posts /wp-admin/edit.php2.18 ▼1.175.78 ▼41.25
Add New Post /wp-admin/post-new.php2.18 ▼3.706.18 ▼101.77
Media Library /wp-admin/upload.php2.18 ▼1.057.05 ▼30.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Awebsome! Online Registered Users Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲7414.35 ▼0.001.67 ▼0.3143.55 ▲0.51
Dashboard /wp-admin2,246 ▲725.57 ▼0.1090.91 ▼7.6737.83 ▼4.01
Posts /wp-admin/edit.php2,079 ▼241.98 ▲0.0238.23 ▲3.8535.60 ▼2.57
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▲0.07671.62 ▲20.8660.19 ▲9.65
Media Library /wp-admin/upload.php1,400 ▼34.11 ▲0.00109.74 ▲6.6847.81 ▲5.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/awebsome-online-registered-users-widget/awebsome-oruw.php+17
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_awebsome_oruw
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awebsome-online-registered-users-widget/awebsome-oruw.php:17

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Show gravatars, show links, show categorization), #2 (No gravatars, no links, no categorization), #3 (Show gravatars, no links, no categorization), #4 (Show gravatars, no links, show categorization), #5 (Show gravatars, show links, no categorization), #6 (No gravatars, show links, no categorization), #7 (No gravatars, no links, show categorization), #8 (No gravatar, show links, show categorization), #9 (Dashboard widget)
You can look at the official readme.txt

awebsome-online-registered-users-widget/awebsome-oruw.php 92% from 13 tests

The entry point to "Awebsome! Online Registered Users Widget" version 2.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awebsome-online-registered-users-widget.php" instead of "awebsome-oruw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected259 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP163168220
CSS2221039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.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
10 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-8.png14.92KB5.09KB▼ 65.91%
screenshot-5.png23.38KB6.25KB▼ 73.28%
screenshot-1.png27.32KB7.46KB▼ 72.68%
screenshot-4.png27.00KB7.44KB▼ 72.45%
screenshot-7.png14.52KB5.03KB▼ 65.38%