Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼275.31ms] Passed 4 tests
Analyzing server-side resources used by pushBIZ - Push Notification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 30.53 ▼2.03 |
Dashboard /wp-admin | 3.11 ▲0.06 | 42.62 ▲1.08 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 40.61 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.05 | 95.98 ▼1,096.00 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 35.13 ▼2.26 |
PushBIZ.IN /wp-admin/admin.php?page=pushBIZ | 3.03 | 27.72 |
/wp-admin/admin.php?page=PushBizSupport | 3.02 | 28.44 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 3 new options
New WordPress options |
---|
PushBIZ_firstCreation |
VarPushBIZapikey |
PushBIZRegUrl |
Browser metrics Passed 4 tests
pushBIZ - Push Notification: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,731 ▲125 | 16.07 ▲0.51 | 8.17 ▲0.05 | 40.12 ▼6.35 |
Dashboard /wp-admin | 2,979 ▲129 | 6.26 ▲0.41 | 136.88 ▲5.92 | 156.94 ▲47.43 |
Posts /wp-admin/edit.php | 2,759 ▲56 | 2.74 ▲0.06 | 69.13 ▲1.48 | 134.74 ▲37.97 |
Add New Post /wp-admin/post-new.php | 1,698 ▲45 | 18.98 ▲0.13 | 368.82 ▲6.38 | 110.68 ▲10.55 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.10 ▲0.07 | 137.92 ▼16.79 | 145.88 ▲34.11 |
PushBIZ.IN /wp-admin/admin.php?page=pushBIZ | 1,319 | 2.37 | 55.30 | 86.08 |
/wp-admin/admin.php?page=PushBizSupport | 1,179 | 2.39 | 56.40 | 68.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pushbiz/admin/support.php
- > /wp-content/plugins/pushbiz/admin/login.php
- > /wp-content/plugins/pushbiz/admin/BIZAnalytics.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pushbiz/Pushbiz.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pushbiz/admin/bizmessage.php:84
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
pushbiz/Pushbiz.php 85% from 13 tests
The principal PHP file in "pushBIZ - Push Notification" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pushbiz.php" instead of "Pushbiz.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected10,386 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 162 | 31 | 8,127 |
JavaScript | 6 | 172 | 11 | 940 |
SVG | 2 | 0 | 0 | 808 |
PHP | 5 | 148 | 20 | 511 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/main.png | 198.50KB | 51.07KB | ▼ 74.27% |