84% adjusted-bounce-rate

Code Review | Adjusted Bounce Rate

WordPress plugin Adjusted Bounce Rate scored84%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: 6.3.1
  • 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

50+ active /2,598 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.10MB] [CPU: ▼7.96ms] Passed 4 tests

An overview of server-side resources used by Adjusted Bounce Rate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.41 ▼2.71
Dashboard /wp-admin3.42 ▲0.1249.37 ▼6.76
Posts /wp-admin/edit.php3.53 ▲0.1852.18 ▼12.70
Add New Post /wp-admin/post-new.php6.00 ▲0.1288.23 ▼9.65
Media Library /wp-admin/upload.php3.34 ▲0.1246.29 ▲11.97
Adjusted Bounce Rate /wp-admin/options-general.php?page=adjusted-bounce-rate3.3136.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
adjusted-bounce-rate-db-version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
adjusted-bounce-rate-options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Adjusted Bounce Rate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.36 ▲0.072.47 ▲0.4638.48 ▼4.22
Dashboard /wp-admin2,196 ▲195.55 ▼0.1389.80 ▼0.1740.43 ▼1.51
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0538.81 ▼3.2234.14 ▼0.03
Add New Post /wp-admin/post-new.php1,529 ▼1121.05 ▼2.32683.68 ▲62.5848.93 ▼7.75
Media Library /wp-admin/upload.php1,401 ▲44.22 ▲0.1497.56 ▼8.3043.91 ▲1.95
Adjusted Bounce Rate /wp-admin/options-general.php?page=adjusted-bounce-rate8982.1322.0930.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • adjusted-bounce-rate-db-version
    • can_compress_scripts
    • widget_theysaidso_widget
    • adjusted-bounce-rate-options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/adjusted-bounce-rate/adjusted-bounce-rate.php:365
    • > PHP Fatal error
      Uncaught Error: Class 'Adjusted_Bounce_Rate' not found in wp-content/plugins/adjusted-bounce-rate/pages/settings.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: bounce rate, analytics, session duration, time on page, google analytics...

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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were 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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin