84% rv-super-editors

Code Review | RV Super Editors

WordPress plugin RV Super Editors scored 84% from 54 tests.

About plugin

  • Plugin page: rv-super-editors
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2014
  • Latest release: Feb 2, 2018
  • Number of updates: 52
  • Update frequency: every 24.9 days
  • Top authors: ErreV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.12ms] Passed 4 tests

Server-side resources used by RV Super Editors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.83 ▼8.95
Dashboard /wp-admin3.32 ▲0.0246.61 ▼5.27
Posts /wp-admin/edit.php3.37 ▲0.0147.00 ▲1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.65 ▼0.03
Media Library /wp-admin/upload.php3.24 ▲0.0137.04 ▲5.04
RV Super Editors /wp-admin/options-general.php?page=rvsupereditors3.2131.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for RV Super Editors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.22 ▼0.971.54 ▼0.4844.64 ▲0.62
Dashboard /wp-admin2,213 ▲394.85 ▼0.04103.73 ▼14.5838.47 ▼6.83
Posts /wp-admin/edit.php2,096 ▲72.14 ▲0.1440.06 ▲2.4635.91 ▲2.34
Add New Post /wp-admin/post-new.php1,550 ▲1718.31 ▼4.74599.92 ▼72.9866.14 ▲14.07
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.1296.25 ▼4.5242.77 ▼0.59
RV Super Editors /wp-admin/options-general.php?page=rvsupereditors8662.0221.6236.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rv-super-editors/rvsupereditors.php:35

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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: appearance, role, members, editor, user...

rv-super-editors/rvsupereditors.php 85% from 13 tests

The main file in "RV Super Editors" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rv-super-editors.php" instead of "rvsupereditors.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)

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
No dangerous file extensions were detected184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP222149120
PO File1252964

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin