10% recently-registered-widget

Code Review | Recently registered widget

WordPress plugin Recently registered widget scored 10% from 54 tests.

About plugin

  • Plugin page: recently-register...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1.1
  • WordPress version: 5.8.1
  • First release: Dec 5, 2014
  • Latest release: Apr 16, 2015
  • Number of updates: 5
  • Update frequency: every 29.0 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,144 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
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/recently-registered-widget/recently-registered-widget.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Recently_Registered has a deprecated constructor

Server metrics [RAM: ▼1.64MB] [CPU: ▼181.44ms] Passed 4 tests

Server-side resources used by Recently registered widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.98 ▼0.859.64 ▼20.97
Dashboard /wp-admin2.01 ▼1.059.30 ▼26.00
Posts /wp-admin/edit.php2.01 ▼1.109.08 ▼33.70
Add New Post /wp-admin/post-new.php2.01 ▼3.439.85 ▼643.30
Media Library /wp-admin/upload.php2.01 ▼0.999.67 ▼22.74

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_recently-registered-widget

Browser metrics Passed 4 tests

Recently registered widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.88 ▲0.659.85 ▼1.1247.26 ▼1.54
Dashboard /wp-admin2,967 ▲345.96 ▼0.21142.57 ▼29.53106.32 ▼1.88
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0061.85 ▼4.5586.24 ▼2.52
Add New Post /wp-admin/post-new.php1,683 ▼018.77 ▲0.19410.89 ▲8.48109.31 ▼7.80
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.02164.47 ▲5.24111.30 ▼2.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in WP_Widget_Recently_Registered is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_recently-registered-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recently-registered-widget/recently-registered-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

recently-registered-widget/recently-registered-widget.php Passed 13 tests

The main file in "Recently registered widget" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
List of recently registered users

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP198172
PO File1344384

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity11.50
▷ Minimum method complexity1.00
▷ Maximum method complexity41.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.02KB10.68KB▼ 49.21%
screenshot-2.png22.73KB13.08KB▼ 42.46%