78% riden

Code Review | RIDEN

WordPress plugin RIDEN scored 78% from 54 tests.

About plugin

  • Plugin page: riden
  • Plugin version: 0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Apr 20, 2018
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: riden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.48ms] Passed 4 tests

An overview of server-side resources used by RIDEN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.73 ▼3.94
Dashboard /wp-admin3.33 ▲0.0347.69 ▲1.64
Posts /wp-admin/edit.php3.38 ▲0.0249.44 ▼0.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.72 ▼12.98
Media Library /wp-admin/upload.php3.25 ▲0.0236.12 ▼0.31
RIDEN Settings /wp-admin/options-general.php?page=riden-settings3.2237.72

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
rsc_riden_threshold
rsc_riden_uuid
rsc_riden_whitelistbl
theysaidso_admin_options
rsc_riden_whitelist
widget_recent-comments
rsc_riden_blacklist
rsc_riden_blacklistbl
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for RIDEN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.054.44 ▲2.8347.56 ▲9.85
Dashboard /wp-admin2,213 ▲254.87 ▼0.0199.46 ▼19.2640.09 ▼3.72
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0041.16 ▲0.9336.13 ▲0.79
Add New Post /wp-admin/post-new.php1,542 ▲723.30 ▲0.22608.61 ▼27.2357.00 ▲6.06
Media Library /wp-admin/upload.php1,395 ▲104.19 ▲0.0396.78 ▼2.1741.88 ▼0.99
RIDEN Settings /wp-admin/options-general.php?page=riden-settings8222.0222.9628.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/riden/rsc-riden-wp.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/riden/admin/rsc-riden-admin.php:25

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: security, ban, spam, block, antispam...

riden/rsc-riden-wp.php 92% from 13 tests

The main file in "RIDEN" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("riden.php" instead of "rsc-riden-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin789 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4214432788
JavaScript1091

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity64.50
▷ Minimum class complexity30.00
▷ Maximum class complexity99.00
Average method complexity5.54
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods1864.29%
▷ Protected methods00.00%
▷ Private methods1035.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin