72% push-notifications-ru

Code Review | Push Нотификации

WordPress plugin Push Нотификации scored72%from 54 tests.

About plugin

  • Plugin page: push-notification...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Dec 15, 2016
  • Number of updates: 7
  • Update frequency: every 37.9 days
  • Top authors: emrysforge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /879 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼3.87ms] Passed 4 tests

This is a short check of server-side resources used by Push Нотификации
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.03 ▼1.02
Dashboard /wp-admin3.34 ▲0.0456.41 ▲0.87
Posts /wp-admin/edit.php3.39 ▲0.0446.60 ▼3.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.25 ▼9.11
Media Library /wp-admin/upload.php3.27 ▲0.0434.53 ▼2.24
Push Нотификации /wp-admin/options-general.php?page=pushem_notifications_options3.2130.57

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Push Нотификации
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.34 ▼0.931.87 ▼0.0745.02 ▲3.71
Dashboard /wp-admin2,225 ▲334.88 ▼0.0598.00 ▼22.1437.66 ▼7.63
Posts /wp-admin/edit.php2,102 ▲161.99 ▼0.0436.44 ▲0.3933.01 ▼3.56
Add New Post /wp-admin/post-new.php1,542 ▲1423.21 ▲0.15668.17 ▼26.6656.17 ▼0.77
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.0896.38 ▼10.2644.53 ▼3.50
Push Нотификации /wp-admin/options-general.php?page=pushem_notifications_options8652.0424.4426.87

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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/options-general.php?page=pushem_notifications_options
    • > Notice in wp-content/plugins/push-notifications-ru/push_notifications_ru.php+106
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/push-notifications-ru/js/sdk/index.php
    • > /wp-content/plugins/push-notifications-ru/index.php
    • > /wp-content/plugins/push-notifications-ru/js/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/push-notifications-ru/push_notifications_ru.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === push-notifications-ru === )
You can take inspiration from this readme.txt

push-notifications-ru/push_notifications_ru.php 85% from 13 tests

"Push Нотификации" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("push-notifications-ru.php" instead of "push_notifications_ru.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)

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
Good job! No executable or dangerous file extensions detected313 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23318188
JavaScript24032121
JSON1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin