10% recent-contributors-widget

Code Review | Recent Contributors Widget

WordPress plugin Recent Contributors Widget scored10%from 54 tests.

About plugin

  • Plugin page: recent-contributo...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2013
  • Latest release: Oct 1, 2019
  • Number of updates: 37
  • Update frequency: every 59.7 days
  • Top authors: thewanderingbrit (91.89%)deployer (10.81%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,605 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/recent-contributors-widget/recent-contributors-widget.php+162
    Function create_function() is deprecated

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

A check of server-side resources used by Recent Contributors Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.58 ▼35.16
Dashboard /wp-admin2.05 ▼1.265.11 ▼50.65
Posts /wp-admin/edit.php2.05 ▼1.315.05 ▼41.86
Add New Post /wp-admin/post-new.php2.05 ▼3.845.23 ▼92.38
Media Library /wp-admin/upload.php2.05 ▼1.186.33 ▼26.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent_contributors_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Recent Contributors Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.201.77 ▲0.2746.07 ▲7.09
Dashboard /wp-admin2,195 ▲185.59 ▼0.0783.31 ▼2.8542.07 ▼4.21
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0135.49 ▼3.4334.76 ▲0.60
Add New Post /wp-admin/post-new.php1,526 ▼523.70 ▲0.49663.96 ▼25.0153.55 ▲1.17
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.0094.84 ▼15.9441.73 ▼4.06

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/recent-contributors-widget/recent-contributors-widget.php+162
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent_contributors_widget
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recent-contributors-widget/recent-contributors-widget.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: week, authors, month, widget, day...

recent-contributors-widget/recent-contributors-widget.php Passed 13 tests

"Recent Contributors Widget" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Displays a list of everyone that has contributed to your site recently (time period can be defined)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1343791
YAML13016

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.16
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ 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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin