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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.38 ▲0.06 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.62 ▼1.90 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.04 ▲3.65 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 89.41 ▼12.67 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.13 ▲1.10 |
JVZIPN Secret Key /wp-admin/admin.php?page=jvzoo-wpestore-integration/admin/class-ss-jvzoo-wpestore-admin.php | 3.31 | 33.33 |
Settings /wp-admin/admin.php?page=map-product-settings | 3.37 | 32.56 |
Map Product /wp-admin/admin.php?page=map-product | 3.30 | 32.34 |
Shortcode /wp-admin/admin.php?page=JVZoo-WPestore-shortcode | 3.30 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲86 | 13.29 ▼1.31 | 1.76 ▼0.37 | 36.19 ▼16.18 |
Dashboard /wp-admin | 2,237 ▲49 | 5.77 ▲0.93 | 105.93 ▼8.73 | 43.51 ▼3.85 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.01 ▼0.01 | 39.87 ▲4.63 | 34.98 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,560 ▲23 | 23.38 ▲4.94 | 652.42 ▲55.84 | 72.77 ▲14.10 |
Media Library /wp-admin/upload.php | 1,419 ▲40 | 4.23 ▼0.03 | 120.47 ▲22.66 | 49.07 ▲3.09 |
JVZIPN Secret Key /wp-admin/admin.php?page=jvzoo-wpestore-integration/admin/class-ss-jvzoo-wpestore-admin.php | 836 | 2.03 | 25.12 | 23.39 |
Settings /wp-admin/admin.php?page=map-product-settings | 999 | 2.06 | 22.63 | 28.57 |
Map Product /wp-admin/admin.php?page=map-product | 958 | 2.06 | 26.52 | 27.10 |
Shortcode /wp-admin/admin.php?page=JVZoo-WPestore-shortcode | 816 | 2.03 | 25.56 | 24.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 457 | 477 | 1,774 |
PO File | 2 | 102 | 75 | 282 |
CSS | 2 | 27 | 6 | 133 |
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 code | 0.29 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 4 | 5.48% |
▷ Public methods | 65 | 89.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.96% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/info.png | 1.00KB | 0.49KB | ▼ 50.83% |