67% rcr8-widget

Code Review | RCR8

WordPress plugin RCR8 scored67%from 54 tests.

About plugin

  • Plugin page: rcr8-widget
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2013
  • Latest release: Aug 4, 2014
  • Number of updates: 60
  • Update frequency: every 8.1 days
  • Top authors: alxgrlk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,782 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.21MB] [CPU: ▼42.53ms] Passed 4 tests

Server-side resources used by RCR8
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6914.46 ▼25.26
Dashboard /wp-admin2.81 ▼0.5417.25 ▼39.82
Posts /wp-admin/edit.php2.81 ▼0.5514.92 ▼31.69
Add New Post /wp-admin/post-new.php2.81 ▼3.0814.63 ▼73.36
Media Library /wp-admin/upload.php2.81 ▼0.4214.53 ▼18.24
RCR8 Shortcode /wp-admin/tools.php?page=rcr8shortcode2.8115.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RCR8
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4614.23 ▼0.432.21 ▲0.1843.80 ▼17.01
Dashboard /wp-admin2,199 ▲315.63 ▲0.0485.18 ▼10.1440.42 ▼3.23
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0136.60 ▼1.0032.15 ▼1.70
Add New Post /wp-admin/post-new.php1,529 ▲322.90 ▲0.06612.52 ▼30.4871.78 ▼24.44
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0498.49 ▼22.7841.66 ▼9.12
RCR8 Shortcode /wp-admin/tools.php?page=rcr8shortcode9721.8333.1243.94

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
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=rcr8shortcode
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
    • > GET request to /wp-admin/tools.php?page=rcr8shortcode
    • > User deprecated in wp-includes/functions.php+5453
    Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× 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/rcr8-widget/rcr8.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === rcr8-widget === )
  • Screenshots: A description for screenshot #3 is required in rcr8-widget/assets to your readme.txt
You can take inspiration from this readme.txt

rcr8-widget/rcr8.php 92% from 13 tests

The main PHP file in "RCR8" ver. 0.8.1 adds more information about the plugin and also serves as the entry point for this plugin
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 ("rcr8-widget.php" instead of "rcr8.php")

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
There were no executable files found in this plugin457 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP126565457

PHP code Passed 2 tests

An short overview of 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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin