84% analytics-unbounce

Code Review | Analytics Reduce Bounce Rate

WordPress plugin Analytics Reduce Bounce Rate scored84%from 54 tests.

About plugin

  • Plugin page: analytics-unbounce
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Jun 20, 2013
  • Latest release: Jun 29, 2013
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: ishan001 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,594 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 gracefully, with no errors

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

Analyzing server-side resources used by Analytics Reduce Bounce Rate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.92 ▼3.49
Dashboard /wp-admin3.32 ▲0.0143.13 ▼6.86
Posts /wp-admin/edit.php3.37 ▲0.0144.67 ▲1.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.13 ▼14.81
Media Library /wp-admin/upload.php3.24 ▲0.0136.74 ▲3.34
Analytics Code /wp-admin/options-general.php?page=analytics-unbounce3.2036.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Analytics Reduce Bounce Rate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.23 ▼1.151.67 ▼0.1841.55 ▼1.69
Dashboard /wp-admin2,213 ▲254.88 ▼1.0297.58 ▼17.5438.25 ▼5.44
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0238.73 ▲0.9035.37 ▲0.91
Add New Post /wp-admin/post-new.php1,536 ▼823.14 ▲4.67673.00 ▲21.7260.81 ▲7.32
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.11100.03 ▲0.8344.02 ▲0.58
Analytics Code /wp-admin/options-general.php?page=analytics-unbounce7782.0225.7525.70

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • unbounce_analytics_id
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/analytics-unbounce/analytics-unbounce.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === analytics-unbounce === )
You can look at the official readme.txt

analytics-unbounce/analytics-unbounce.php Passed 13 tests

The primary PHP file in "Analytics Reduce Bounce Rate" version 2.3 is used by WordPress to initiate all plugin functionality
82 characters long description:
Adds Google Analytics tracking code to WordPress and fixes bounce rate measurement

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151499

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.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 files were detected