84% adjusted-bounce-rate

Code Review | Adjusted Bounce Rate

WordPress plugin Adjusted Bounce Rate scored 84% from 54 tests.

About plugin

  • Plugin page: adjusted-bounce-rate
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 5.9.2
  • First release: May 13, 2014
  • Latest release: Apr 6, 2015
  • Number of updates: 20
  • Update frequency: every 16.9 days
  • Top authors: grantnorwood (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active / 2,162 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Adjusted Bounce Rate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.21 ▲4.17
Dashboard /wp-admin3.45 ▲0.0432.03 ▼1.92
Posts /wp-admin/edit.php3.67 ▲0.0436.18 ▲0.13
Add New Post /wp-admin/post-new.php6.92 ▼0.0596.09 ▼1,150.32
Media Library /wp-admin/upload.php3.33 ▲0.0322.43 ▼8.30
Adjusted Bounce Rate /wp-admin/options-general.php?page=adjusted-bounce-rate3.3021.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options
adjusted-bounce-rate-options
adjusted-bounce-rate-db-version

Browser metrics Passed 4 tests

An overview of browser requirements for Adjusted Bounce Rate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲5915.96 ▲0.317.06 ▲1.472.16 ▼0.17
Dashboard /wp-admin2,894 ▲336.16 ▼0.05115.53 ▼10.15161.38 ▲2.20
Posts /wp-admin/edit.php2,696 ▲23.23 ▼0.0064.22 ▼0.84141.80 ▲0.45
Add New Post /wp-admin/post-new.php1,664 ▼9616.04 ▼5.56424.67 ▲5.36155.49 ▲2.48
Media Library /wp-admin/upload.php1,706 ▲85.52 ▼0.00143.30 ▲3.07184.13 ▼4.70
Adjusted Bounce Rate /wp-admin/options-general.php?page=adjusted-bounce-rate1,1212.4453.09127.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 2 options
    • adjusted-bounce-rate-options
    • adjusted-bounce-rate-db-version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Adjusted_Bounce_Rate' not found in wp-content/plugins/adjusted-bounce-rate/pages/settings.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/adjusted-bounce-rate/adjusted-bounce-rate.php:365

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: time on site, analytics, session duration, google analytics, bounce rate...

adjusted-bounce-rate/adjusted-bounce-rate.php Passed 13 tests

The principal PHP file in "Adjusted Bounce Rate" v. 1.2.1 is loaded by WordPress automatically on each request
134 characters long description:
A well-designed plugin that improves the accuracy of your bounce rate, time on page, and session duration metrics in Google Analytics.

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 plugin746 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3181465497
JavaScript38394190
Markdown134059

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.50
▷ Minimum class complexity28.00
▷ Maximum class complexity35.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods1753.12%
▷ Protected methods1546.88%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected