73% wbounce

Code Review | wBounce

WordPress plugin wBounce scored73%from 54 tests.

About plugin

  • Plugin page: wbounce
  • Plugin version: 1.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2014
  • Latest release: Jul 24, 2019
  • Number of updates: 84
  • Update frequency: every 26.5 days
  • Top authors: kevinweber (100%)

Code review

54 tests

User reviews

107 reviews

Install metrics

1,000+ active /75,892 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.20MB] [CPU: ▼1.78ms] Passed 4 tests

A check of server-side resources used by wBounce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.68 ▲5.73
Dashboard /wp-admin3.53 ▲0.2249.18 ▲3.34
Posts /wp-admin/edit.php3.64 ▲0.2845.84 ▼7.18
Add New Post /wp-admin/post-new.php6.14 ▲0.2583.40 ▼2.49
Media Library /wp-admin/upload.php3.45 ▲0.2234.31 ▼0.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
wbounce_version
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for wBounce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲25713.54 ▼0.9911.97 ▲10.3942.97 ▲0.84
Dashboard /wp-admin2,204 ▲305.65 ▲0.0795.79 ▲11.4542.54 ▼2.17
Posts /wp-admin/edit.php2,118 ▲152.15 ▲0.1835.95 ▼5.8832.56 ▼6.64
Add New Post /wp-admin/post-new.php6,344 ▲4,80925.91 ▲7.66864.54 ▲236.5063.91 ▼5.22
Media Library /wp-admin/upload.php1,409 ▲64.17 ▼0.0698.26 ▼3.6140.24 ▼5.57
wBounce /wp-admin/wbounce.php260.420.0812.96

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/wbounce/admin/inc/signup.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WBOUNCE_Setup' not found in wp-content/plugins/wbounce/frontend/class-shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wbounce/frontend/class-frontend.php:8
    • > PHP Warning
      Use of undefined constant WBOUNCE_NEWS_NAME - assumed 'WBOUNCE_NEWS_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wbounce/admin/inc/signup.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wbounce/admin/class-meta.php:32
    • > PHP Warning
      Use of undefined constant WBOUNCE_NEWS_BUTTON - assumed 'WBOUNCE_NEWS_BUTTON' (this will throw an Error in a future version of PHP) in wp-content/plugins/wbounce/admin/inc/signup.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wbounce/wbounce.php:22
    • > PHP Warning
      Use of undefined constant WBOUNCE_NEWS_GROUP - assumed 'WBOUNCE_NEWS_GROUP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wbounce/admin/inc/signup.php on line 6
    • > PHP Warning
      Use of undefined constant WBOUNCE_NEWS_ACTION_URL - assumed 'WBOUNCE_NEWS_ACTION_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wbounce/admin/inc/signup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wbounce/admin/class-register.php:10
    • > PHP Warning
      Use of undefined constant WBOUNCE_NEWS_TEXT - assumed 'WBOUNCE_NEWS_TEXT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wbounce/admin/inc/signup.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wbounce.php
    • > Network (severe)
    wp-admin/wbounce.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

wbounce/wbounce.php Passed 13 tests

The main PHP script in "wBounce" version 1.8.1 is automatically included on every request by WordPress
115 characters long description:
wBounce improves bounce rate to boost conversions and sales. The free alternative to Bounce Exchange for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,715 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JSON2002,821
PHP121811851,068
Sass7601458
JavaScript67945327
Markdown19017
XML10012
Bourne Shell1106
CSS5276

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.78
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods5490.00%
▷ Protected methods00.00%
▷ Private methods610.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png9.26KB10.01KB0.00%
screenshot-3.png27.21KB28.69KB0.00%
screenshot-4.png9.16KB10.04KB0.00%
kevinw_framework/images/gray-grad.png0.21KB0.18KB▼ 11.74%
screenshot-2.png11.15KB12.05KB0.00%