78% reverbnation-master

Code Review | TechGasp Rave Master

WordPress plugin TechGasp Rave Master scored78%from 54 tests.

About plugin

  • Plugin page: reverbnation-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 1, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 61
  • Update frequency: every 46.6 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /20,333 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.05MB] [CPU: ▼3.69ms] Passed 4 tests

This is a short check of server-side resources used by TechGasp Rave Master
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.62 ▼1.75
Dashboard /wp-admin3.36 ▲0.0549.63 ▼3.61
Posts /wp-admin/edit.php3.41 ▲0.0549.15 ▲0.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.46 ▼10.32
Media Library /wp-admin/upload.php3.28 ▲0.0538.47 ▲1.18
Rave Master /wp-admin/admin.php?page=reverbnation-master3.2734.15
Add-ons /wp-admin/admin.php?page=reverbnation-master-admin-addons3.3036.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_reverbnation_master_widget_buttons
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for TechGasp Rave Master
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.35 ▼0.312.12 ▲0.3740.94 ▼0.05
Dashboard /wp-admin2,206 ▲325.58 ▼0.0785.85 ▼12.2576.64 ▲31.90
Posts /wp-admin/edit.php2,129 ▲262.00 ▲0.0335.29 ▼1.2334.38 ▼0.87
Add New Post /wp-admin/post-new.php1,563 ▲3723.12 ▲0.06647.14 ▲29.98131.24 ▲78.57
Media Library /wp-admin/upload.php1,423 ▲234.24 ▲0.0399.87 ▼6.7979.58 ▲35.91
Rave Master /wp-admin/admin.php?page=reverbnation-master1,7758.01211.3096.97
Add-ons /wp-admin/admin.php?page=reverbnation-master-admin-addons1,0801.9930.0237.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_reverbnation_master_widget_buttons
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reverbnation-master/reverbnation-master.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/reverbnation-master/includes/reverbnation-master-admin.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=reverbnation-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=reverbnation-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=reverbnation-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=reverbnation-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

reverbnation-master/reverbnation-master.php 92% from 13 tests

The principal PHP file in "TechGasp Rave Master" v. 5.1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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 plugin389 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92657389

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
10 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-spammaster-logo.png174.42KB66.22KB▼ 62.04%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-hr.png0.94KB0.13KB▼ 86.60%