78% mobile-app-for-woocommerce

Code Review | ShopApper: Mobile App for WooCommerce

WordPress plugin ShopApper: Mobile App for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: mobile-app-for-wo...
  • Plugin version: 0.4.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 105
  • Update frequency: every 8.6 days
  • Top authors: esdu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /4,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.04MB] [CPU: ▼0.66ms] Passed 4 tests

Analyzing server-side resources used by ShopApper: Mobile App for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0145.86 ▲7.05
Dashboard /wp-admin4.38 ▲1.0750.90 ▼4.69
Posts /wp-admin/edit.php4.43 ▲1.0746.74 ▼0.30
Add New Post /wp-admin/post-new.php7.02 ▲1.1396.94 ▼4.70
Media Library /wp-admin/upload.php4.24 ▲1.0141.16 ▲7.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,091 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for ShopApper: Mobile App for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4714.67 ▲0.531.79 ▲0.0443.11 ▼3.08
Dashboard /wp-admin2,214 ▲405.60 ▲0.0686.53 ▼12.9777.43 ▲31.01
Posts /wp-admin/edit.php2,119 ▲221.99 ▼0.0137.02 ▲0.2734.66 ▲0.48
Add New Post /wp-admin/post-new.php1,543 ▲723.68 ▲0.48732.27 ▲25.3955.83 ▲1.90
Media Library /wp-admin/upload.php1,416 ▲194.27 ▲0.11101.55 ▼0.3963.27 ▲19.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mobile-app-for-woocommerce/mobile-app-for-woocommerce.php
  • 2044× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Trunking/V1/TrunkPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Preview/TrustedComms/CurrentCallOptions.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Verify/V2/ServiceContext.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationList.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Trunking/V1/Trunk/RecordingContext.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Messaging/V1/UsecasePage.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Sync/V1/ServiceOptions.php:65
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.php:78
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/mobile-app-for-woocommerce/includes/Twilio/Rest/Api/V2010/Account/RecordingOptions.php:32

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: react native, mobile app builder, e-commerce, app, woocommerce...

mobile-app-for-woocommerce/mobile-app-for-woocommerce.php 85% from 13 tests

"ShopApper: Mobile App for WooCommerce" version 0.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 76 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected100,109 lines of code in 2,081 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,07529,846115,066100,076
CSS4154125
JavaScript2458

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.48
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces207
Interfaces2
Traits1
Classes2,568
▷ Abstract classes28811.21%
▷ Concrete classes2,28088.79%
▷ Final classes10.04%
Methods13,942
▷ Static methods5413.88%
▷ Public methods12,52889.86%
▷ Protected methods1,40610.08%
▷ Private methods80.06%
Functions131
▷ Named functions1410.69%
▷ Anonymous functions11789.31%
Constants21
▷ Global constants523.81%
▷ Class constants1676.19%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png1.42KB1.35KB▼ 4.54%