68% i2csmobile-for-woo

Code Review | WooCommerce Mobile App Source Code by i2CSMobile

WordPress plugin WooCommerce Mobile App Source Code by i2CSMobile scored68%from 54 tests.

About plugin

  • Plugin page: i2csmobile-for-woo
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Apr 23, 2017
  • Number of updates: 35
  • Update frequency: every 6.9 days
  • Top authors: madushak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,878 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼2.19MB] [CPU: ▼60.72ms] Passed 4 tests

A check of server-side resources used by WooCommerce Mobile App Source Code by i2CSMobile
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.655.66 ▼36.62
Dashboard /wp-admin2.10 ▼1.466.39 ▼50.45
Posts /wp-admin/edit.php2.10 ▼1.588.96 ▼53.50
Add New Post /wp-admin/post-new.php2.10 ▼4.056.51 ▼102.32
Media Library /wp-admin/upload.php2.10 ▼1.397.56 ▼29.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 132 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Mobile App Source Code by i2CSMobile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.39 ▼0.061.70 ▲0.0443.07 ▲0.46
Dashboard /wp-admin2,218 ▲415.58 ▼0.0987.10 ▼3.1939.88 ▲0.28
Posts /wp-admin/edit.php2,126 ▲262.00 ▲0.0240.34 ▲3.0837.44 ▲2.77
Add New Post /wp-admin/post-new.php1,572 ▲4123.24 ▲0.12692.11 ▲64.9764.07 ▲2.93
Media Library /wp-admin/upload.php1,420 ▲204.23 ▼0.0199.58 ▲2.0445.36 ▲2.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/i2csmobile-for-woo/i2csmobile-for-woo.php+65
    Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/index.php
  • 57× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/HttpClients/FacebookGuzzleHttpClient.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/Http/RequestBodyMultipart.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/GraphNodes/GraphAchievement.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/GraphNodes/GraphGroup.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/GraphNodes/GraphObjectFactory.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/GraphNodes/GraphEvent.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Hybrid_Provider_Model_OpenID' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/Providers/OpenID.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/PersistentData/FacebookSessionPersistentDataHandler.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/Exceptions/FacebookClientException.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/i2csmobile-for-woo/includes/api/auth/hybridauth/hybridauth/Hybrid/thirdparty/Facebook/Helpers/FacebookJavaScriptHelper.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

i2csmobile-for-woo/i2csmobile-for-woo.php 92% from 13 tests

"WooCommerce Mobile App Source Code by i2CSMobile" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin13,837 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202,88810,41813,724
Markdown224040
JSON10033
HTML32328
XML10012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces11
Interfaces6
Traits1
Classes119
▷ Abstract classes65.04%
▷ Concrete classes11394.96%
▷ Final classes00.00%
Methods951
▷ Static methods545.68%
▷ Public methods82987.17%
▷ Protected methods858.94%
▷ Private methods373.89%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants52
▷ Global constants815.38%
▷ Class constants4484.62%
▷ Public constants44100.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