84% love-brave-browser

Code Review | Love, Brave Browser

WordPress plugin Love, Brave Browser scored84%from 54 tests.

About plugin

  • Plugin page: love-brave-browser
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Jan 15, 2022
  • Latest release: Oct 5, 2023
  • Number of updates: 9
  • Update frequency: every 70.6 days
  • Top authors: alanjacobmathew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 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.01MB] [CPU: ▼2.19ms] Passed 4 tests

Analyzing server-side resources used by Love, Brave Browser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.71 ▼2.51
Dashboard /wp-admin3.32 ▲0.0154.83 ▲1.98
Posts /wp-admin/edit.php3.37 ▲0.0145.88 ▼8.71
Add New Post /wp-admin/post-new.php5.90 ▲0.01108.15 ▲18.05
Media Library /wp-admin/upload.php3.24 ▲0.0137.31 ▲0.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Love, Brave Browser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.25 ▼0.052.28 ▲0.1743.95 ▲1.70
Dashboard /wp-admin2,209 ▲334.86 ▼1.04106.27 ▼12.8342.06 ▼3.95
Posts /wp-admin/edit.php2,089 ▼42.02 ▲0.0146.51 ▲1.5933.73 ▼10.45
Add New Post /wp-admin/post-new.php6,397 ▲4,87829.35 ▲6.25941.46 ▲214.2569.11 ▼19.00
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.03122.41 ▲9.2342.95 ▼5.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
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 add_action() in wp-content/plugins/love-brave-browser/love-brave-browser.php:43

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: privacy, ad-free, security, brave browser, block

love-brave-browser/love-brave-browser.php Passed 13 tests

The main PHP script in "Love, Brave Browser" version 0.1.0 is automatically included on every request by WordPress
37 characters long description:
Shoutout your love for Brave Browser.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin77 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111635
JavaScript19031
JSON10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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