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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.03 ▼1.02 |
Dashboard /wp-admin | 3.34 ▲0.04 | 56.41 ▲0.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.60 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.25 ▼9.11 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.53 ▼2.24 |
Push Нотификации /wp-admin/options-general.php?page=pushem_notifications_options | 3.21 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.34 ▼0.93 | 1.87 ▼0.07 | 45.02 ▲3.71 |
Dashboard /wp-admin | 2,225 ▲33 | 4.88 ▼0.05 | 98.00 ▼22.14 | 37.66 ▼7.63 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 1.99 ▼0.04 | 36.44 ▲0.39 | 33.01 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.21 ▲0.15 | 668.17 ▼26.66 | 56.17 ▼0.77 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▼0.08 | 96.38 ▼10.26 | 44.53 ▼3.50 |
Push Нотификации /wp-admin/options-general.php?page=pushem_notifications_options | 865 | 2.04 | 24.44 | 26.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 18 | 188 |
JavaScript | 2 | 40 | 32 | 121 |
JSON | 1 | 0 | 0 | 4 |
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 code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin