72% zaki-push-notification

Code Review | Zaki Push Notification

WordPress plugin Zaki Push Notification scored72%from 54 tests.

About plugin

  • Plugin page: zaki-push-notific...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2013
  • Latest release: Nov 28, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: r.conte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

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.11MB] [CPU: ▲0.53ms] Passed 4 tests

A check of server-side resources used by Zaki Push Notification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1046.94 ▲4.79
Dashboard /wp-admin3.42 ▲0.1253.77 ▲0.98
Posts /wp-admin/edit.php3.54 ▲0.1958.01 ▲10.13
Add New Post /wp-admin/post-new.php6.00 ▲0.12102.41 ▼5.61
Media Library /wp-admin/upload.php3.33 ▲0.1040.50 ▲1.96
Credits /wp-admin/admin.php?page=zaki-push-notification-credits3.3037.36
Zaki Push Notification /wp-admin/admin.php?page=zaki-push-notification3.3038.58
Documentation /wp-admin/admin.php?page=zaki-push-notification-documentation3.3035.47

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/zaki-push-notification/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: 1 new table, 8 new options
New tables
wp_zaki_push_notification
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
zaki_push_notification_options
widget_recent-posts
zaki_push_notification_fistactivationcheck
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Zaki Push Notification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲22614.69 ▼0.031.85 ▼0.0344.00 ▼0.77
Dashboard /wp-admin2,393 ▲1876.43 ▲0.52128.46 ▲29.5040.06 ▼6.22
Posts /wp-admin/edit.php2,298 ▲1983.34 ▲1.3355.45 ▲16.6934.88 ▲3.08
Add New Post /wp-admin/post-new.php1,708 ▲16322.60 ▼0.51570.32 ▼44.7231.92 ▼33.24
Media Library /wp-admin/upload.php1,432 ▲294.08 ▼0.1684.81 ▼17.6342.79 ▼4.97
Credits /wp-admin/admin.php?page=zaki-push-notification-credits9873.0239.7637.25
Zaki Push Notification /wp-admin/admin.php?page=zaki-push-notification1,0963.0243.3527.14
Documentation /wp-admin/admin.php?page=zaki-push-notification-documentation1,0463.0439.0426.60

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • zaki_push_notification_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zaki-push-notification-documentation
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zaki-push-notification-documentation
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zaki-push-notification/zaki-push-notification.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zaki-push-notification-documentation
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/zaki-push-notification/js/js-zaki-push-notification.js?ver=6.3.1:7:39)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zaki-push-notification-documentation
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The button for notifications appears on the edit page), #2 (Settings page)
You can take inspiration from this readme.txt

zaki-push-notification/zaki-push-notification.php Passed 13 tests

The main PHP file in "Zaki Push Notification" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Add Apple Push Notification system for post and custom post type

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected507 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27044457
CSS18228
JavaScript111722

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin