78% rb-village-extras

Code Review | RB Village Extras (rbve)

WordPress plugin RB Village Extras (rbve) scored78%from 54 tests.

About plugin

  • Plugin page: rb-village-extras
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2016
  • Latest release: Sep 26, 2020
  • Number of updates: 52
  • Update frequency: every 31.0 days
  • Top authors: retrodans (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.79ms] Passed 4 tests

Analyzing server-side resources used by RB Village Extras (rbve)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.86 ▼4.62
Dashboard /wp-admin3.31 ▲0.0142.96 ▼9.09
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.94 ▼24.57
Media Library /wp-admin/upload.php3.24 ▲0.0039.18 ▲2.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RB Village Extras (rbve)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.54 ▼1.231.66 ▼0.4144.32 ▲0.78
Dashboard /wp-admin2,207 ▲195.83 ▲0.9597.66 ▼7.8637.89 ▼3.89
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0339.47 ▲3.2036.95 ▲2.49
Add New Post /wp-admin/post-new.php1,420 ▲922.19 ▲4.18555.14 ▼60.7042.38 ▲1.38
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0392.24 ▼12.2840.69 ▼3.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rb-village-extras/admin/partials/rbve-admin-display.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rb-village-extras/rbve-plugin.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rbve_business.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rb-village-extras/includes/custom_shortcodes.php:290
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rbve_clubs_societies.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rb-village-extras/templates/colorway/single-rb_village_doc.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rb-village-extras === )
The official readme.txt is a good inspiration

rb-village-extras/rbve-plugin.php 92% from 13 tests

The main file in "RB Village Extras (rbve)" v. 1.1.8 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: Please rename the main PHP file in this plugin to the plugin slug ("rb-village-extras.php" instead of "rbve-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,337 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP132115611,219
Markdown1270115
JavaScript12273
CSS2190

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.80
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin