90% browsee

Code Review | Browsee

WordPress plugin Browsee scored 90% from 54 tests.

About plugin

  • Plugin page: browsee
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Jun 24, 2020
  • Number of updates: 6
  • Update frequency: every 56.0 days
  • Top authors: browsee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Browsee
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.97 ▼6.20
Dashboard /wp-admin3.32 ▲0.0153.90 ▼0.14
Posts /wp-admin/edit.php3.37 ▲0.0152.74 ▲1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.01103.28 ▲10.40
Media Library /wp-admin/upload.php3.24 ▲0.0136.15 ▼6.18
Browsee /wp-admin/options-general.php?page=browsee_settings3.2534.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
browsee_version
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Browsee
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲1713.38 ▼0.931.72 ▼0.4044.08 ▼0.45
Dashboard /wp-admin2,212 ▲65.85 ▲1.01114.44 ▲2.4545.88 ▲3.10
Posts /wp-admin/edit.php2,095 ▲32.04 ▼0.0240.72 ▲1.0334.87 ▲0.44
Add New Post /wp-admin/post-new.php1,535 ▼123.13 ▲0.16662.76 ▼7.1566.27 ▲12.43
Media Library /wp-admin/upload.php1,397 ▲94.18 ▲0.0196.91 ▼20.9041.42 ▼5.25
Browsee /wp-admin/options-general.php?page=browsee_settings8232.0224.6621.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • browsee_version
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

browsee/browsee.php Passed 13 tests

The main file in "Browsee" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
Browsee helps you understand your users better using session recordings, heatmaps, simulations and session tagging.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin173 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35147159
CSS12014

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.20
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/static/browsee_logo_2x.png18.09KB9.27KB▼ 48.73%