74% izooto-web-push

Code Review | iZooto - Web Push Notifications

WordPress plugin iZooto - Web Push Notifications scored74%from 54 tests.

About plugin

  • Plugin page: izooto-web-push
  • Plugin version: 3.7.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2016
  • Latest release: Aug 2, 2023
  • Number of updates: 133
  • Update frequency: every 20.3 days
  • Top authors: shrikantkale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /46,367 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.67 ▼1.65
Dashboard /wp-admin3.39 ▲0.0545.80 ▼16.04
Posts /wp-admin/edit.php3.50 ▲0.1544.38 ▼0.86
Add New Post /wp-admin/post-new.php5.97 ▲0.0980.71 ▼11.66
Media Library /wp-admin/upload.php3.31 ▲0.0935.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.76 ▲0.361.80 ▲0.1842.56 ▼3.90
Dashboard /wp-admin2,224 ▲325.85 ▼0.03106.08 ▼9.4868.65 ▲24.47
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.0234.23 ▼1.1731.79 ▼5.45
Add New Post /wp-admin/post-new.php1,527 ▲823.19 ▲0.07785.38 ▲110.5953.27 ▲1.05
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.0396.70 ▼8.6375.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP81974181,333
CSS2105668
JavaScript43536453
SVG20060

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 code0.33
Average class complexity28.50
▷ Minimum class complexity20.00
▷ Maximum class complexity37.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods719.44%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/izooto-logo-white.png5.10KB3.21KB▼ 37.01%
assets/images/icon2-old.png0.50KB0.56KB0.00%
assets/images/step-1.png286.78KB144.93KB▼ 49.46%
assets/images/icon2.png0.32KB0.30KB▼ 4.88%
assets/images/icon1.png1.52KB0.50KB▼ 67.50%