88% pushbiz

Code Review | pushBIZ - Push Notification

WordPress plugin pushBIZ - Push Notification scored 88% from 53 tests.

About plugin

  • Plugin page: pushbiz
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4
  • WordPress version: 5.8.1
  • First release: Apr 1, 2016
  • Latest release: Apr 28, 2016
  • Number of updates: 37
  • Update frequency: every 0.8 days
  • Top authors: csimplifyit (100%)

Code review

53 tests

User reviews

10 reviews

Install metrics

10+ active / 771 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0430.53 ▼2.03
Dashboard /wp-admin3.11 ▲0.0642.62 ▲1.08
Posts /wp-admin/edit.php3.20 ▲0.0940.61 ▼0.93
Add New Post /wp-admin/post-new.php5.47 ▲0.0595.98 ▼1,096.00
Media Library /wp-admin/upload.php3.05 ▲0.0535.13 ▼2.26
PushBIZ.IN /wp-admin/admin.php?page=pushBIZ3.0327.72
/wp-admin/admin.php?page=PushBizSupport3.0228.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲12516.07 ▲0.518.17 ▲0.0540.12 ▼6.35
Dashboard /wp-admin2,979 ▲1296.26 ▲0.41136.88 ▲5.92156.94 ▲47.43
Posts /wp-admin/edit.php2,759 ▲562.74 ▲0.0669.13 ▲1.48134.74 ▲37.97
Add New Post /wp-admin/post-new.php1,698 ▲4518.98 ▲0.13368.82 ▲6.38110.68 ▲10.55
Media Library /wp-admin/upload.php1,772 ▼05.10 ▲0.07137.92 ▼16.79145.88 ▲34.11
PushBIZ.IN /wp-admin/admin.php?page=pushBIZ1,3192.3755.3086.08
/wp-admin/admin.php?page=PushBizSupport1,1792.3956.4068.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
CSS6162318,127
JavaScript617211940
SVG200808
PHP514820511

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 code0.07
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/image/main.png198.50KB51.07KB▼ 74.27%