10% intellipush

Code Review | Intellipush WP SMS

WordPress plugin Intellipush WP SMS scored 10% from 54 tests.

About plugin

  • Plugin page: intellipush
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 5.9.2
  • First release: Apr 18, 2018
  • Latest release: Feb 28, 2020
  • Number of updates: 5
  • Update frequency: every 145.0 days
  • Top authors: intellipush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 692 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/intellipush/includes/class-intellipush-helper.php+31
    Undefined variable: INTELLIPUSH_TRANSIENT_EXPIRATION_LONG

Server metrics [RAM: ▼0.91MB] [CPU: ▼343.40ms] Passed 4 tests

Server-side resources used by Intellipush WP SMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.1111.53 ▼42.93
Dashboard /wp-admin3.49 ▲0.0811.79 ▼25.65
Posts /wp-admin/edit.php3.49 ▼0.1512.95 ▼25.02
Add New Post /wp-admin/post-new.php3.49 ▼3.4811.89 ▼1,279.98
Media Library /wp-admin/upload.php3.49 ▲0.1911.78 ▼12.72
Messages /wp-admin/admin.php?page=intellipush-messages3.4911.59
Settings /wp-admin/admin.php?page=intellipush-settings3.4912.70
Tools /wp-admin/admin.php?page=intellipush-tools3.4912.71
_Credits /wp-admin/admin.php?page=intellipush-_credits3.4912.82
Setup /wp-admin/admin.php?page=intellipush-setup3.4911.69
Welcome /wp-admin/admin.php?page=intellipush-welcome3.4912.58
Intellipush /wp-admin/admin.php?page=intellipush3.4911.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 335 new files
Database: no new tables, 1 new option
New WordPress options
acf_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Intellipush WP SMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,987 ▲23316.89 ▲1.1913.38 ▲5.852.67 ▲0.31
Dashboard /wp-admin2,963 ▲1097.20 ▲0.90123.52 ▼22.50168.97 ▲6.55
Posts /wp-admin/edit.php2,750 ▲593.73 ▲0.5073.15 ▲8.44140.74 ▼7.02
Add New Post /wp-admin/post-new.php2,494 ▲83323.15 ▲6.58550.35 ▲105.85180.04 ▲23.22
Media Library /wp-admin/upload.php2,418 ▲72010.66 ▲5.15222.26 ▲74.57203.43 ▲14.41
Messages /wp-admin/admin.php?page=intellipush-messages1,1533.0266.48161.71
Settings /wp-admin/admin.php?page=intellipush-settings1,1603.0663.35182.87
Tools /wp-admin/admin.php?page=intellipush-tools1,1843.0262.79148.82
_Credits /wp-admin/admin.php?page=intellipush-_credits1,1843.0165.06149.42
Setup /wp-admin/admin.php?page=intellipush-setup1,1873.0263.18151.13
Welcome /wp-admin/admin.php?page=intellipush-welcome1,1533.0161.95150.05
Intellipush /wp-admin/admin.php?page=intellipush1,1533.0262.92154.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
    • > Warning in wp-content/plugins/intellipush/admin/pages/tools/woocommerce-order-export/functions.php+16
    array_unshift() expects parameter 1 to be array, string given
  • Zombie WordPress options detected upon uninstall: 1 option
    • acf_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=intellipush
    • > Warning in wp-content/plugins/intellipush/admin/pages/tools/woocommerce-order-export/functions.php+16
    array_unshift() expects parameter 1 to be array, string given
  • 48 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=intellipush
    • > Warning in wp-content/plugins/intellipush/includes/acf/includes/local-fields.php+177
    Illegal string offset 'parent'
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=intellipush
    • > Warning in wp-content/plugins/intellipush/includes/acf/includes/local-fields.php+177
    Cannot use a scalar value as an array
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=intellipush-settings
    • > Notice in wp-content/plugins/intellipush/admin/pages/settings/index.php+53
    Undefined variable: Intellipush_isAuth

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/intellipush/admin/partials/intellipush-admin-display.php
    • > /wp-content/plugins/intellipush/public/partials/intellipush-public-display.php
  • 114× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/intellipush/includes/acf/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf() in wp-content/plugins/intellipush/includes/acf/pro/acf-pro.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/intellipush/includes/acf/includes/admin/views/settings-info.php:3
    • > PHP Notice
      Undefined variable: group_id in wp-content/plugins/intellipush/includes/acf/includes/admin/views/html-location-group.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/intellipush/includes/acf/includes/fields/class-acf-field-select.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/intellipush/includes/acf/includes/acf-value-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/intellipush/includes/acf/includes/fields/class-acf-field-file.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/intellipush/includes/acf/includes/deprecated.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/intellipush/includes/acf/includes/fields/class-acf-field-group.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/intellipush/includes/acf/includes/fields/class-acf-field-email.php:5

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: marketing, sms, woocommerce, communication

intellipush/intellipush.php Passed 13 tests

The entry point to "Intellipush WP SMS" version 2.0.0 is a PHP file that has certain tags in its header comment area
76 characters long description:
Intellipush for Wordpress (Mobile marketing, professional SMS communication)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/intellipush/includes/intellipush-sdk/vendor/intellipush/intellipush-php-sdk-v2/src/Cert/ip_gd_bundle.crt
96,301 lines of code in 276 files:
LanguageFilesBlank linesComment linesLines of code
PO File2921,62135,35145,581
JavaScript227,2216,99023,791
PHP19613,55821,07921,786
SVG82012,973
CSS15208641,620
Sass34010357
JSON300193

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes138
▷ Abstract classes10.72%
▷ Concrete classes13799.28%
▷ Final classes00.00%
Methods1,008
▷ Static methods60.60%
▷ Public methods99899.01%
▷ Protected methods10.10%
▷ Private methods90.89%
Functions514
▷ Named functions50898.83%
▷ Anonymous functions61.17%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/acf/assets/images/acf-logo.png3.40KB3.39KB0.23%
includes/acf/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%
includes/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
includes/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%
includes/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%