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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.02ms] Passed 4 tests
Analyzing server-side resources used by DiscountX - Best Woocommerce Discount Popup Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.84 ▲1.51 |
Dashboard /wp-admin | 3.42 ▲0.07 | 44.62 ▼17.61 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.02 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.37 ▼11.81 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.23 ▲4.93 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
discountx_activation_redirect |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for DiscountX - Best Woocommerce Discount Popup Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.23 ▼1.16 | 4.98 ▲3.08 | 42.47 ▼1.86 |
Dashboard /wp-admin | 2,218 ▲27 | 4.87 ▼0.02 | 109.93 ▼5.25 | 39.72 ▼3.23 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.02 ▼0.03 | 39.72 ▲2.86 | 35.33 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 23.45 ▲5.37 | 632.93 ▼18.41 | 56.93 ▼5.20 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.31 ▲0.03 | 101.34 ▲3.38 | 41.89 ▼1.99 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- discountx_activation_redirect
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Condition Rules), #2 (Popup Settings), #3 (Style settings.), #4 (Popup Display theme one.)
- Tags: You are using too many tags: 20 tag instead of maximum 10
discountx/discountx.php 92% from 13 tests
The entry point to "DiscountX - Best Woocommerce Discount Popup Plugin" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,624 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 166 | 299 | 927 |
CSS | 3 | 56 | 10 | 433 |
JavaScript | 3 | 38 | 24 | 207 |
Markdown | 1 | 36 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/frontend/img/close.png | 0.29KB | 0.25KB | ▼ 12.63% |