90% browserly

Code Review | Browserly

WordPress plugin Browserly scored90%from 54 tests.

About plugin

  • Plugin page: browserly
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Sep 16, 2020
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: chrisb10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /471 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.23ms] Passed 4 tests

Server-side resources used by Browserly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.96 ▲6.66
Dashboard /wp-admin3.34 ▼0.0144.55 ▼28.74
Posts /wp-admin/edit.php3.39 ▲0.0347.96 ▲7.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.85 ▼6.40
Media Library /wp-admin/upload.php3.26 ▲0.0335.01 ▼0.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Browserly: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.26 ▼0.962.09 ▲0.2147.82 ▲10.14
Dashboard /wp-admin2,209 ▲184.86 ▼1.03103.11 ▼12.2138.52 ▼6.44
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0139.14 ▼4.7634.66 ▲0.37
Add New Post /wp-admin/post-new.php1,542 ▲2018.19 ▼5.20623.40 ▲22.8548.99 ▼2.78
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.03100.02 ▼8.5542.59 ▼2.46

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

browserly/browserly.php Passed 13 tests

"Browserly" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
Easily customise the users browser, including setting the theme colour, and disabling overscroll or pull-to-refresh features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44549182

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin