73% inforu-mobile-automation

Code Review | InforUMobile Automation

WordPress plugin InforUMobile Automation scored73%from 54 tests.

About plugin

  • Plugin page: inforu-mobile-aut...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2022
  • Latest release: Sep 4, 2023
  • Number of updates: 6
  • Update frequency: every 45.3 days
  • Top authors: inforumobileplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.79ms] Passed 4 tests

An overview of server-side resources used by InforUMobile Automation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.03 ▲2.33
Dashboard /wp-admin3.32 ▼0.0245.27 ▼11.95
Posts /wp-admin/edit.php3.37 ▲0.0241.91 ▼7.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.22 ▼20.66
Media Library /wp-admin/upload.php3.25 ▲0.0232.23 ▲1.08

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 8 new options
New tables
wp_inforu_subscribe
New WordPress options
widget_recent-posts
wc_inforu_setup_version
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
wc_inforu_newsletter_setup_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by InforUMobile Automation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.081.74 ▲0.2444.22 ▲5.18
Dashboard /wp-admin2,195 ▲185.55 ▼0.1183.91 ▼2.1838.33 ▼7.93
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0034.42 ▼8.5632.25 ▼4.13
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▼0.28668.49 ▼8.8156.07 ▼2.78
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0697.31 ▼13.4044.56 ▼3.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_inforu_subscribe
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • wc_inforu_setup_version
    • widget_theysaidso_widget
    • wc_inforu_newsletter_setup_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/inforu-mobile-automation/includes/Integration.php:9
    • > PHP Fatal error
      require_once(): Failed opening required '' (include_path='.:/usr/share/php') in wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/includes/Table/SubscribeList.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/templates/subscribe-form.php:9
    • > PHP Warning
      require_once(wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/includes/Table): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/includes/Table/SubscribeList.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Inforu\\Backend' not found in wp-content/plugins/inforu-mobile-automation/includes/Frontend.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/includes/Table/SubscribeList.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/templates/subscribe-checkbox.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Inforu_Newsletter\\Form\\AbstractForm' not found in wp-content/plugins/inforu-mobile-automation/addon/woo-inforu-newsletter/includes/Form/Subscribe.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'WC_Inforu\\AppInterface' not found in wp-content/plugins/inforu-mobile-automation/includes/Backend.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Inforu\\Event\\RegisterSuccess' not found in wp-content/plugins/inforu-mobile-automation/includes/Event/SaveAccount.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === InforUMobile Automation === )
Please take inspiration from this readme.txt

inforu-mobile-automation/woocommerce-inforu.php 77% from 13 tests

This is the main PHP file of "InforUMobile Automation" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.0.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("inforu-mobile-automation.php" instead of "woocommerce-inforu.php")
  • Domain Path: The domain path points to a folder that does not exist ("/i18n/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,759 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP333445851,747
JavaScript10012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.52
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes28
▷ Abstract classes13.57%
▷ Concrete classes2796.43%
▷ Final classes00.00%
Methods137
▷ Static methods1410.22%
▷ Public methods11382.48%
▷ Protected methods2417.52%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin