Benchmarks
Plugin footprint 83% 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.12MB] [CPU: ▼3.79ms] Passed 4 tests
Server-side resources used by Offerwhere Points, Rewards & Loyalty Programs for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 40.47 ▲0.85 |
Dashboard /wp-admin | 3.41 ▲0.10 | 51.04 ▼2.59 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 55.85 ▲8.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.93 ▼14.02 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.66 ▲0.61 |
Offerwhere /wp-admin/options-general.php?page=offerwhere-settings | 3.30 | 33.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Offerwhere Points, Rewards & Loyalty Programs for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.74 ▲0.15 | 1.70 ▼0.48 | 40.85 ▼2.06 |
Dashboard /wp-admin | 2,232 ▲26 | 4.83 ▼0.05 | 102.78 ▼0.55 | 38.45 ▼8.57 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▼0.01 | 36.77 ▼2.42 | 34.73 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,556 ▲12 | 23.21 ▲4.78 | 678.64 ▲21.45 | 68.25 ▲11.78 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.34 ▲0.12 | 98.42 ▼3.85 | 40.72 ▼3.41 |
Offerwhere /wp-admin/options-general.php?page=offerwhere-settings | 826 | 2.06 | 24.45 | 27.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: points and rewards, points program, reward program, woocommerce, loyalty program...
offerwhere-for-woocommerce/offerwhere-woocommerce.php 85% from 13 tests
This is the main PHP file of "Offerwhere Points, Rewards & Loyalty Programs for WooCommerce" version 2.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("offerwhere-for-woocommerce.php" instead of "offerwhere-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 162 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
Good job! No executable or dangerous file extensions detected598 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 65 | 18 | 598 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 39 | 100.00% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.95% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 1 | 3.45% |
▷ Class constants | 28 | 96.55% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin