Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲2.54ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Smart Coupons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 46.76 ▲5.43 |
Dashboard /wp-admin | 4.13 ▲0.83 | 53.95 ▲2.34 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 59.98 ▲11.76 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.89 | 96.94 ▼5.63 |
Media Library /wp-admin/upload.php | 4.05 ▲0.83 | 42.39 ▲8.00 |
Automatic Actions /wp-admin/edit.php?post_type=octolio_workflow | 4.16 | 47.14 |
Manual Actions /wp-admin/edit.php?post_type=octolio_bulkaction | 4.16 | 42.01 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification detected: 1 file (0.89KB) outside of "wp-content/plugins/octolio/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
octolio_init |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Smart Coupons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 14.47 ▲0.09 | 1.71 ▼0.33 | 42.33 ▼2.75 |
Dashboard /wp-admin | 2,230 ▲39 | 4.88 ▼1.02 | 109.22 ▼14.03 | 44.33 ▼5.15 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.00 ▼0.05 | 39.66 ▲1.41 | 36.33 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,553 ▲16 | 23.28 ▲5.11 | 629.56 ▼25.25 | 58.09 ▲2.53 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.22 ▲0.02 | 96.81 ▼1.60 | 42.69 ▲1.14 |
Automatic Actions /wp-admin/edit.php?post_type=octolio_workflow | 1,638 | 2.01 | 35.60 | 31.83 |
Manual Actions /wp-admin/edit.php?post_type=octolio_bulkaction | 1,638 | 2.03 | 33.96 | 31.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- octolio_init
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 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 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
The following issues need your attention
- 23× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/octolio/inc/admin/views/bulkaction/listing.php
- > /wp-content/plugins/octolio/inc/classes/workflow.php
- > /wp-content/plugins/octolio/octolio.php
- > /wp-content/plugins/octolio/inc/library/class.php
- > /wp-content/plugins/octolio/inc/helpers/post.php
- > /wp-content/plugins/octolio/inc/library/integration.php
- > /wp-content/plugins/octolio/inc/integrations/page.php
- > /wp-content/plugins/octolio/inc/type/operator.php
- > /wp-content/plugins/octolio/inc/admin/admin.php
- > /wp-content/plugins/octolio/inc/helpers/helper.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
- Screenshots: Add a description for screenshot #4 in octolio/assets to your readme.txt
octolio/octolio.php 92% from 13 tests
"WooCommerce Smart Coupons" version 0.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,507 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,545 | 1,124 | 5,141 |
CSS | 4 | 436 | 84 | 2,128 |
JavaScript | 1 | 86 | 24 | 224 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 4 | 12.50% |
▷ Concrete classes | 28 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 404 | |
▷ Static methods | 6 | 1.49% |
▷ Public methods | 372 | 92.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 7.92% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/lib/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |
inc/admin/assets/lib/jquery/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
inc/admin/assets/lib/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
inc/admin/assets/lib/jquery/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
inc/admin/assets/lib/jquery/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |