62% jvzoo-wpestore-integration

Code Review | JVZoo WPestore integration

WordPress plugin JVZoo WPestore integration scored 62% from 54 tests.

About plugin

  • Plugin page: jvzoo-wpestore-in...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Jul 21, 2017
  • Latest release: Jul 21, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: cimon77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,106 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.35ms] Passed 4 tests

An overview of server-side resources used by JVZoo WPestore integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.38 ▲0.06
Dashboard /wp-admin3.41 ▲0.1151.62 ▼1.90
Posts /wp-admin/edit.php3.52 ▲0.1749.04 ▲3.65
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.41 ▼12.67
Media Library /wp-admin/upload.php3.33 ▲0.1036.13 ▲1.10
JVZIPN Secret Key /wp-admin/admin.php?page=jvzoo-wpestore-integration/admin/class-ss-jvzoo-wpestore-admin.php3.3133.33
Settings /wp-admin/admin.php?page=map-product-settings3.3732.56
Map Product /wp-admin/admin.php?page=map-product3.3032.34
Shortcode /wp-admin/admin.php?page=JVZoo-WPestore-shortcode3.3028.80

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 9 new options
New tables
wp_map_products
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
ss_jvzoo_wpestore_db_version
ss_jvzoo_wpestore_config
ss_jvzoo_wpestore_config_v2
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

JVZoo WPestore integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8613.29 ▼1.311.76 ▼0.3736.19 ▼16.18
Dashboard /wp-admin2,237 ▲495.77 ▲0.93105.93 ▼8.7343.51 ▼3.85
Posts /wp-admin/edit.php2,126 ▲372.01 ▼0.0139.87 ▲4.6334.98 ▲0.79
Add New Post /wp-admin/post-new.php1,560 ▲2323.38 ▲4.94652.42 ▲55.8472.77 ▲14.10
Media Library /wp-admin/upload.php1,419 ▲404.23 ▼0.03120.47 ▲22.6649.07 ▲3.09
JVZIPN Secret Key /wp-admin/admin.php?page=jvzoo-wpestore-integration/admin/class-ss-jvzoo-wpestore-admin.php8362.0325.1223.39
Settings /wp-admin/admin.php?page=map-product-settings9992.0622.6328.57
Map Product /wp-admin/admin.php?page=map-product9582.0626.5227.10
Shortcode /wp-admin/admin.php?page=JVZoo-WPestore-shortcode8162.0325.5624.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_map_products
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • ss_jvzoo_wpestore_db_version
    • widget_recent-comments
    • ss_jvzoo_wpestore_config_v2
    • ss_jvzoo_wpestore_config
    • widget_recent-posts

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
    • > GET request to /wp-admin/admin.php?page=map-product-settings
    • > Warning in wp-content/plugins/jvzoo-wpestore-integration/admin/settings-page/general-settings/membership-level.php+66
    Use of undefined constant dbAccess - assumed 'dbAccess' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/jvzoo-wpestore-integration/includes/class-success-page.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ss_get_Product() in wp-content/plugins/jvzoo-wpestore-integration/admin/map-product/view/Product-single.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jvzoo-wpestore-integration/admin/settings-page-menu.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/jvzoo-wpestore-integration/includes/class-success-page.php on line 22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/jvzoo-wpestore-integration/includes/class-success-page.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'Ss_Jvzoo_Wpestore_Config' not found in wp-content/plugins/jvzoo-wpestore-integration/admin/settings-page/general-settings/wpmember-secret-word.php:38
    • > 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/jvzoo-wpestore-integration/admin/map-product/class-Product-list-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jvzoo-wpestore-integration/admin/map-product/view/Product-new.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/jvzoo-wpestore-integration/includes/class-success-page.php on line 21
    • > PHP Warning
      Use of undefined constant SS_JVZOO_WPESTORE_ABSPATH - assumed 'SS_JVZOO_WPESTORE_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jvzoo-wpestore-integration/includes/class-success-page.php on line 19

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=jvzoo-wpestore-integration/admin/class-ss-jvzoo-wpestore-admin.php
    • > Network (severe)
    wp-content/plugins/ss_jvzoo_wpestore/admin/images/info.png - Failed to load resource: the server responded with a status of 404 (Not Found)

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
3 plugin tags: jvzoo, wpestore, jvzoo wpestore integration

jvzoo-wpestore-integration/ss-jvzoo-wpestore.php 85% from 13 tests

The main PHP file in "JVZoo WPestore integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jvzoo-wpestore-integration.php" instead of "ss-jvzoo-wpestore.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected2,189 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP264574771,774
PO File210275282
CSS2276133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.38
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods73
▷ Static methods45.48%
▷ Public methods6589.04%
▷ Protected methods00.00%
▷ Private methods810.96%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/info.png1.00KB0.49KB▼ 50.83%