94% shopboost-surprise-hesitating-visitors

Code Review | Shopboost - Surprise Hesitating Visitors

WordPress plugin Shopboost - Surprise Hesitating Visitors scored 94% from 54 tests.

About plugin

  • Plugin page: shopboost-surpris...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7.2
  • WordPress version: 5.8.1
  • First release: Jun 17, 2021
  • Latest release: Jun 17, 2021
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: shopboost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 90 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼143.62ms] Passed 4 tests

A check of server-side resources used by Shopboost - Surprise Hesitating Visitors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0540.76 ▲5.23
Dashboard /wp-admin3.11 ▲0.0655.28 ▲0.46
Posts /wp-admin/edit.php3.16 ▲0.0655.88 ▼0.03
Add New Post /wp-admin/post-new.php5.47 ▲0.0497.60 ▼571.15
Media Library /wp-admin/upload.php3.06 ▲0.0536.57 ▼3.77
Shopboost /wp-admin/options-general.php?page=shopboost3.0234.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options
shopboost_enable_for_admin
shopboost_enable

Browser metrics Passed 4 tests

An overview of browser requirements for Shopboost - Surprise Hesitating Visitors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲19716.39 ▲1.1512.37 ▲0.2848.98 ▼4.66
Dashboard /wp-admin3,026 ▲925.93 ▼0.05156.00 ▼13.55116.16 ▼3.62
Posts /wp-admin/edit.php2,795 ▲562.72 ▼0.0077.54 ▲1.2691.48 ▼11.55
Add New Post /wp-admin/post-new.php1,701 ▲12016.19 ▼1.59460.33 ▲21.32108.51 ▼11.39
Media Library /wp-admin/upload.php1,863 ▲535.01 ▼0.02170.14 ▲7.12119.90 ▼6.92
Shopboost /wp-admin/options-general.php?page=shopboost1,2602.1058.3292.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shopboost-surprise-hesitating-visitors/shopboost-page.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/shopboost-surprise-hesitating-visitors/shopboost.php:109

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: webshop, marketing, wordpress, woocommerce

shopboost-surprise-hesitating-visitors/shopboost.php 85% from 13 tests

The entry point to "Shopboost - Surprise Hesitating Visitors" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shopboost-surprise-hesitating-visitors.php" instead of "shopboost.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin376 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34081186
PO File1242491
SVG20277
CSS13022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin