83% robberbaron-tv

Code Review | RobberBaron.TV – Direct your followers to your premium content on RobberBaron

WordPress plugin RobberBaron.TV – Direct your followers to your premium content on RobberBaron scored83%from 54 tests.

About plugin

  • Plugin page: robberbaron-tv
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7.1
  • WordPress version: 6.3.1
  • First release: May 18, 2021
  • Latest release: May 18, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: robberbarontv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.53ms] Passed 4 tests

A check of server-side resources used by RobberBaron.TV – Direct your followers to your premium content on RobberBaron
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.14 ▲1.84
Dashboard /wp-admin3.38 ▲0.0850.91 ▼1.56
Posts /wp-admin/edit.php3.49 ▲0.1449.81 ▼7.14
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.55 ▼9.17
Media Library /wp-admin/upload.php3.30 ▲0.0739.36 ▼0.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
robber_baron_tv_user_id
can_compress_scripts
robber_baron_tv_connected
widget_theysaidso_widget
widget_recent-comments
robber_baron_tv_email_address
widget_robber_baron_tv
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RobberBaron.TV – Direct your followers to your premium content on RobberBaron
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲4913.29 ▼1.091.77 ▼0.0245.91 ▼0.13
Dashboard /wp-admin2,227 ▲454.85 ▼1.03102.95 ▼8.3144.95 ▲4.31
Posts /wp-admin/edit.php2,104 ▲152.00 ▼0.0537.51 ▼2.3632.70 ▼7.20
Add New Post /wp-admin/post-new.php1,543 ▲1423.14 ▲4.98649.04 ▲14.5457.24 ▲7.43
Media Library /wp-admin/upload.php1,400 ▲94.23 ▼0.0099.29 ▼2.7746.29 ▲0.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_robber_baron_tv
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/robberbaron-tv/robber-baron-tv.php:24

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: creator, video, premium, content, influencer

robberbaron-tv/robber-baron-tv.php 85% from 13 tests

The main PHP script in "RobberBaron.TV – Direct your followers to your premium content on RobberBaron" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 456 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("robberbaron-tv.php" instead of "robber-baron-tv.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 detected389 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3119248338
CSS29351

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity22.50
▷ Minimum class complexity13.00
▷ Maximum class complexity32.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.37MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png273.53KB78.25KB▼ 71.39%
screenshot-3.png275.70KB78.72KB▼ 71.45%
screenshot-2.png287.58KB81.22KB▼ 71.76%
screenshot-1.png278.89KB79.41KB▼ 71.53%
screenshot-4.png281.12KB79.79KB▼ 71.62%