10% mebounce

Code Review | meBounce - Best Lead Generation Tool

WordPress plugin meBounce - Best Lead Generation Tool scored10%from 54 tests.

About plugin

  • Plugin page: mebounce
  • Plugin version: 2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2018
  • Latest release: Jun 2, 2019
  • Number of updates: 9
  • Update frequency: every 40.6 days
  • Top authors: itzpradip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /753 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/mebounce/mebounce.php+23
    Use of undefined constant mebounce_main_loader_func - assumed 'mebounce_main_loader_func' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.77MB] [CPU: ▼48.27ms] Passed 4 tests

An overview of server-side resources used by meBounce - Best Lead Generation Tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.245.82 ▼31.50
Dashboard /wp-admin2.24 ▼1.067.43 ▼39.90
Posts /wp-admin/edit.php2.24 ▼1.116.58 ▼40.34
Add New Post /wp-admin/post-new.php2.24 ▼3.646.49 ▼81.34
Media Library /wp-admin/upload.php2.24 ▼0.996.99 ▼25.53
Subscribers 0 /wp-admin/admin.php?page=mebounce_subscribers_list2.247.81
Edit /wp-admin/admin.php?page=mebounce_edit_item2.247.45
Settings /wp-admin/admin.php?page=mebounce_settings2.248.27

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

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

Browser metrics Passed 4 tests

Checking browser requirements for meBounce - Best Lead Generation Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲26113.92 ▼0.4310.59 ▲8.9241.18 ▼1.59
Dashboard /wp-admin2,235 ▲585.69 ▲0.0680.59 ▼5.0069.17 ▲27.03
Posts /wp-admin/edit.php2,144 ▲441.98 ▲0.0036.28 ▲1.3635.12 ▲0.02
Add New Post /wp-admin/post-new.php1,580 ▲5423.03 ▼0.02715.87 ▲63.5659.95 ▲2.29
Media Library /wp-admin/upload.php1,440 ▲434.27 ▲0.10111.59 ▲8.8781.25 ▲36.13
Subscribers 0 /wp-admin/admin.php?page=mebounce_subscribers_list1,0422.1032.4129.94
Edit /wp-admin/admin.php?page=mebounce_edit_item9242.0125.9026.81
Settings /wp-admin/admin.php?page=mebounce_settings1,0662.2239.8230.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/mebounce/mebounce.php+23
    Use of undefined constant mebounce_main_loader_func - assumed 'mebounce_main_loader_func' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 7 options in the database
    • mebounce_version
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mebounce_settings
    • > Warning in wp-content/plugins/mebounce/mebounce.php+23
    Use of undefined constant mebounce_main_loader_func - assumed 'mebounce_main_loader_func' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mebounce_settings
    • > Warning in wp-content/plugins/mebounce/mebounce.php+32
    Use of undefined constant mebounce_admin_func - assumed 'mebounce_admin_func' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mebounce_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Mebounce_menu_settings::create_menu_pages() should not be called statically
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mebounce_settings
    • > Notice in wp-content/plugins/mebounce/classes/settings.class.php+171
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=mebounce_subscribers_list
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Mebounce_menu_settings::mebounce_subscribers_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=mebounce_edit_item
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Mebounce_menu_settings::mebounce_edit_page() should not be called statically
    • > GET request to /wp-admin/admin.php?page=mebounce_edit_item
    • > Notice in wp-content/plugins/mebounce/classes/menu.class.php+105
    Undefined index: nonce
    • > GET request to /wp-admin/admin.php?page=mebounce_edit_item
    • > Deprecated in wp-admin/includes/template.php+1443
    Non-static method Mebounce_menu_settings::mebounce_meta_box_handler() should not be called statically
    • > GET request to /wp-admin/admin.php?page=mebounce_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Mebounce_menu_settings::mebounce_settings_page() should not be called statically

SRP 0% from 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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mebounce/includes/custom-js.php
    • > /wp-content/plugins/mebounce/index.php
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/mebounce/includes/popup.php on line 12
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mebounce/classes/custom-table.class.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mebounce/classes/dboperations.class.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mebounce/classes/custom-table.class.php on line 14
    • > PHP Notice
      Undefined variable: head_title in wp-content/plugins/mebounce/includes/popup.php on line 7
    • > PHP Notice
      Undefined variable: aggressive in wp-content/plugins/mebounce/includes/custom-js.php on line 4
    • > PHP Notice
      Undefined variable: chain_output in wp-content/plugins/mebounce/includes/custom-js.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mebounce/classes/custom-table.class.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mebounce/includes/popup.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mebounce/classes/menu.class.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 70 tag instead of maximum 10
The official readme.txt might help

mebounce/mebounce.php 92% from 13 tests

The main PHP script in "meBounce - Best Lead Generation Tool" version 2.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

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
No dangerous file extensions were detected1,301 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP14214293959
CSS391246
JavaScript5102196

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity21.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods6492.75%
▷ Protected methods00.00%
▷ Private methods57.25%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/box-solid.png17.53KB0.73KB▼ 95.85%