Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.65ms] Passed 4 tests
A check of server-side resources used by Woo Points
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 39.95 ▼1.32 |
Dashboard /wp-admin | 3.60 ▲0.29 | 47.33 ▼2.60 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 52.24 ▲5.80 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 87.46 ▼8.47 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 46.39 ▲14.05 |
Options /wp-admin/admin.php?page=woopoints-admin-options | 3.49 | 33.42 |
Woocommerce Points /wp-admin/admin.php?page=woopoints | 3.50 | 37.95 |
Notifications /wp-admin/admin.php?page=woopoints-admin-notifications | 3.49 | 34.30 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_woo_points_users |
New WordPress options |
---|
widget_woopoints_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Points
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲83 | 13.24 ▼1.14 | 1.65 ▼0.36 | 38.90 ▼11.53 |
Dashboard /wp-admin | 2,242 ▲57 | 4.89 ▼1.00 | 100.20 ▼8.93 | 86.64 ▲45.35 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.06 ▲0.04 | 39.14 ▲0.89 | 35.15 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,699 ▲171 | 22.10 ▲3.96 | 728.34 ▲72.86 | 60.19 ▲2.34 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.25 ▲0.06 | 117.90 ▲12.21 | 46.19 ▲1.74 |
Options /wp-admin/admin.php?page=woopoints-admin-options | 868 | 1.79 | 31.54 | 27.22 |
Woocommerce Points /wp-admin/admin.php?page=woopoints | 1,088 | 1.77 | 29.31 | 27.35 |
Notifications /wp-admin/admin.php?page=woopoints-admin-notifications | 874 | 1.73 | 26.10 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_woo_points_users
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_woopoints_widget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-points/lib/core/class-woo-points-table.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-points/lib/core/class-woo-points-woocommerce-views.php:30
- > 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/woo-points/lib/core/class-woo-points-table.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-points/lib/core/class-woo-points-notifications.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/woo-points/woo-points.php:33
- > 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/woo-points/lib/core/class-woo-points-table.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-points/lib/core/class-woo-points-shortcodes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-points/lib/core/class-woo-points-woocommerce.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-points/lib/core/class-woo-points-widget.php:25
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woopoints-admin-notifications
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).datetimepicker is not a function" "TypeError: jQuery(...).datetimepicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/woo-points/js/admin-scripts.js?ver=1.0:3:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woopoints-admin-notifications
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).datetimepicker is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Options - you can adjust the plugin's settings here.), #2 (WooPoints - Admin the Woo Points from the dashboard.), #3 (Add manually - you can add points manually.), #4 (My Points - user frontend "my-points" section)
woo-points/woo-points.php 92% from 13 tests
"Woo Points" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,259 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 330 | 451 | 1,558 |
CSS | 4 | 75 | 19 | 515 |
PO File | 1 | 63 | 82 | 152 |
JavaScript | 6 | 8 | 29 | 24 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 54 | 77.14% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 4 | 5.71% |
▷ Private methods | 2 | 2.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 33.28KB | 9.62KB | ▼ 71.10% |
screenshot-2.png | 64.18KB | 17.71KB | ▼ 72.42% |
screenshot-1.png | 24.94KB | 6.41KB | ▼ 74.32% |
img/logo.png | 1.75KB | 1.48KB | ▼ 15.86% |
screenshot-4.png | 48.92KB | 15.13KB | ▼ 69.07% |