Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.55ms] Passed 4 tests
Analyzing server-side resources used by iZooto - Web Push Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.67 ▼1.65 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.80 ▼16.04 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.38 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 80.71 ▼11.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.21 ▲2.49 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_iz_notifications_onpush |
New WordPress options |
---|
izooto-settings |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iZooto - Web Push Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.76 ▲0.36 | 1.80 ▲0.18 | 42.56 ▼3.90 |
Dashboard /wp-admin | 2,224 ▲32 | 5.85 ▼0.03 | 106.08 ▼9.48 | 68.65 ▲24.47 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.02 ▼0.02 | 34.23 ▼1.17 | 31.79 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.19 ▲0.07 | 785.38 ▲110.59 | 53.27 ▲1.05 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▲0.03 | 96.70 ▼8.63 | 75.09 ▲29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_iz_notifications_onpush
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- izooto-settings
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: sw in wp-content/plugins/izooto-web-push/includes/service-worker.php on line 28
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: There are too many tags (24 tag instead of maximum 10)
izooto-web-push/izooto.php 92% from 13 tests
The main file in "iZooto - Web Push Notifications" v. 3.7.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("izooto-web-push.php" instead of "izooto.php")
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
No dangerous file extensions were detected2,514 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 197 | 418 | 1,333 |
CSS | 2 | 10 | 5 | 668 |
JavaScript | 4 | 35 | 36 | 453 |
SVG | 2 | 0 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 7 | 19.44% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 34 | 97.14% |
▷ Anonymous functions | 1 | 2.86% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/izooto-logo-white.png | 5.10KB | 3.21KB | ▼ 37.01% |
assets/images/icon2-old.png | 0.50KB | 0.56KB | 0.00% |
assets/images/step-1.png | 286.78KB | 144.93KB | ▼ 49.46% |
assets/images/icon2.png | 0.32KB | 0.30KB | ▼ 4.88% |
assets/images/icon1.png | 1.52KB | 0.50KB | ▼ 67.50% |