10% users-box

Code Review | User Box

WordPress plugin User Box scored10%from 54 tests.

About plugin

  • Plugin page: users-box
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Feb 4, 2016
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: isevcik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,063 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
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/users-box/users-box.php+130
    Function create_function() is deprecated

Server metrics [RAM: ▼18.55MB] [CPU: ▼3,441,916.57ms] Passed 4 tests

This is a short check of server-side resources used by User Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.435.39 ▼36.07
Dashboard /wp-admin2.10 ▼67.637.19 ▼13,767,489.32
Posts /wp-admin/edit.php2.10 ▼1.306.64 ▼44.32
Add New Post /wp-admin/post-new.php2.10 ▼3.835.63 ▼96.55
Media Library /wp-admin/upload.php2.10 ▼1.176.36 ▼29.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for User Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲2014.23 ▼0.121.89 ▼0.1044.33 ▼0.42
Dashboard /wp-admin2,195 ▲185.55 ▼0.0489.35 ▼14.1037.03 ▼6.48
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0340.45 ▲3.5132.80 ▼5.84
Add New Post /wp-admin/post-new.php1,526 ▼123.07 ▲0.01652.16 ▼44.7357.97 ▲2.94
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0197.30 ▼12.6543.75 ▼2.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/users-box/users-box.php+130
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_usersboxwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/users-box/users-box.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: avatar, avatars, member, members, user...

users-box/users-box.php Passed 13 tests

The main PHP file in "User Box" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Display a box with a random user avatars.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12210101
CSS14024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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
There are no PNG files in this plugin