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.11MB] [CPU: ▼6.25ms] Passed 4 tests
An overview of server-side resources used by WooNti
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.04 ▼5.53 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.57 ▼5.78 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.54 ▲6.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.20 ▼11.29 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.49 ▼2.40 |
Notifications /wp-admin/admin.php?page=woonti | 3.33 | 33.09 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WooNti
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.57 ▼0.05 | 1.73 ▲0.12 | 43.82 ▼1.29 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.01 | 84.52 ▼17.69 | 42.96 ▼0.05 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.94 ▼0.08 | 38.31 ▼1.13 | 32.08 ▼4.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.58 ▲0.37 | 698.07 ▲20.70 | 55.21 ▼0.88 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.28 ▲0.09 | 95.86 ▼12.19 | 41.23 ▼8.03 |
Notifications /wp-admin/admin.php?page=woonti | 1,197 | 2.02 | 22.92 | 30.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
woonti/woonti.php Passed 13 tests
"WooNti" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Improves notifications for your WooCommerce store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,543 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 8 | 188 | 325 | 685 |
PO File | 1 | 252 | 464 | 183 |
CSS | 2 | 0 | 3 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/template-default.png | 5.92KB | 3.77KB | ▼ 36.22% |
assets/images/template-icons.png | 6.99KB | 4.80KB | ▼ 31.28% |
assets/images/template-images.png | 16.65KB | 7.62KB | ▼ 54.24% |
assets/images/newyear-pattern.png | 71.73KB | 20.91KB | ▼ 70.85% |
assets/images/donate.png | 10.09KB | 5.03KB | ▼ 50.19% |