10% 3xpush

Code Review | 3xpush - PUSH sending and monetization (HTTPS)

WordPress plugin 3xpush - PUSH sending and monetization (HTTPS) scored 10% from 54 tests.

About plugin

  • Plugin page: 3xpush
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4-5.2.4
  • WordPress version: 5.8.1
  • First release: Dec 31, 2019
  • Latest release: Dec 31, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: 3xpush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 247 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-admin.php+280
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.70MB] [CPU: ▼192.33ms] Passed 4 tests

A check of server-side resources used by 3xpush - PUSH sending and monetization (HTTPS)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.93 ▼0.796.55 ▼17.37
Dashboard /wp-admin1.95 ▼1.115.66 ▼43.14
Posts /wp-admin/edit.php1.95 ▼1.167.65 ▼41.68
Add New Post /wp-admin/post-new.php1.95 ▼3.496.75 ▼653.62
Media Library /wp-admin/upload.php1.95 ▼1.056.16 ▼30.86
3XPUSH /wp-admin/options-general.php?page=xpush-settings1.955.44

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (0.10KB) outside of "wp-content/plugins/3xpush/" and "wp-content/uploads/"
    • (new file) firebase-messaging-sw.js
Filesystem: 50 new files
Database: 1 new table, 1 new option
New tables
wp_xpush_dispatch
New WordPress options
xpush_active

Browser metrics Passed 4 tests

3xpush - PUSH sending and monetization (HTTPS): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,711 ▲13916.03 ▲0.3911.26 ▲1.1150.54 ▼2.98
Dashboard /wp-admin2,995 ▲596.20 ▲0.27143.04 ▼29.04121.93 ▲3.59
Posts /wp-admin/edit.php2,787 ▲482.74 ▲0.0265.08 ▼5.7093.65 ▼1.62
Add New Post /wp-admin/post-new.php1,663 ▲16322.44 ▲3.95287.64 ▼94.23119.80 ▲13.42
Media Library /wp-admin/upload.php1,780 ▼275.03 ▲0.01129.41 ▼20.45154.80 ▲25.49
3XPUSH /wp-admin/options-general.php?page=xpush-settings1,6464.3183.93112.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-admin.php+280
    Array and string offset access syntax with curly braces is deprecated

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xpush-settings
    • > Deprecated in wp-content/plugins/3xpush/includes/class-xpush-api.php+112
    Array and string offset access syntax with curly braces is deprecated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xpush-settings
    • > Notice in wp-content/plugins/3xpush/templates/settings-page.php+57
    Trying to access array offset on value of type bool

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/settings-page.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/3xpush/templates/notice.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: push, sending

3xpush/3xpush.php 92% from 13 tests

The entry point to "3xpush - PUSH sending and monetization (HTTPS)" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 218 characters long)

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
There were no executable files found in this plugin8,459 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,044645,708
JavaScript83343571,658
PHP1221510855
PO File2108124238

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.57
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods46
▷ Static methods12.17%
▷ Public methods3167.39%
▷ Protected methods919.57%
▷ Private methods613.04%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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
16 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/jquery-ui-smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png0.31KB0.18KB▼ 42.95%
assets/images/jquery-ui-smoothness/ui-icons_454545_256x240.png6.91KB4.18KB▼ 39.44%
assets/images/default-icon.png9.90KB5.00KB▼ 49.49%
assets/images/jquery-ui-smoothness/ui-bg_glass_55_fbf9ee_1x400.png0.37KB0.12KB▼ 66.04%
assets/images/jquery-ui-smoothness/ui-bg_glass_65_ffffff_1x400.png0.24KB0.09KB▼ 64.23%