10% mobiloud-mobile-app-plugin

Code Review | MobiLoud - WordPress Mobile Apps - Convert your WordPress Website to Native Mobile Apps

WordPress plugin MobiLoud - WordPress Mobile Apps - Convert your WordPress Website to Native Mobile Apps scored10%from 54 tests.

About plugin

  • Plugin page: mobiloud-mobile-a...
  • Plugin version: 4.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 15, 2012
  • Latest release: Nov 15, 2023
  • Number of updates: 1,419
  • Update frequency: every 3.0 days
  • Top authors: psac50 (68.15%)xsvet (22.13%)vitorargos (4.65%)nvarius (2.18%)

Code review

54 tests

User reviews

109 reviews

Install metrics

800+ active /295,929 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲1.47MB] [CPU: ▲8.39ms] Passed 4 tests

Analyzing server-side resources used by MobiLoud - WordPress Mobile Apps - Convert your WordPress Website to Native Mobile Apps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.49 ▲1.0354.36 ▲12.65
Dashboard /wp-admin4.96 ▲1.6162.18 ▲2.46
Posts /wp-admin/edit.php5.02 ▲1.6664.19 ▲0.74
Add New Post /wp-admin/post-new.php8.02 ▲2.13228.57 ▲123.29
Media Library /wp-admin/upload.php4.82 ▲1.5953.26 ▲17.70
Configuration /wp-admin/admin.php?page=mobiloud4.9160.48
Push Notifications /wp-admin/admin.php?page=mobiloud_push4.99180.69

Server storage [IO: ▲18.86MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 468 new files
Database: 4 new tables, 54 new options
New tables
wp_mobiloud_pages
wp_mobiloud_notification_categories
wp_mobiloud_categories
wp_mobiloud_notifications
New WordPress options
ml_page_title_enabled
ml_article_list_view_type
ml_license_tracked
ml_show_android_cat_tabs
ml_dateformat
widget_theysaidso_widget
ml_allow_landscape
ml_post_date_enabled
can_compress_scripts
ml_hamburger_nav
...

Browser metrics Passed 4 tests

A check of browser resources used by MobiLoud - WordPress Mobile Apps - Convert your WordPress Website to Native Mobile Apps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲20114.77 ▲0.441.50 ▼0.1938.09 ▼5.70
Dashboard /wp-admin2,357 ▲1795.62 ▼0.0987.42 ▼31.7952.18 ▲10.16
Posts /wp-admin/edit.php2,271 ▲1682.05 ▲0.1141.01 ▼23.0448.19 ▼19.75
Add New Post /wp-admin/post-new.php1,561 ▲3525.68 ▲2.42841.60 ▲162.5268.56 ▲17.75
Media Library /wp-admin/upload.php1,565 ▲1684.23 ▲0.0597.93 ▼9.2951.06 ▲6.85
Configuration /wp-admin/admin.php?page=mobiloud13,3549.96175.7256.05
Push Notifications /wp-admin/admin.php?page=mobiloud_push13,3529.90206.0844.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_mobiloud_pages
    • wp_mobiloud_notification_categories
    • wp_mobiloud_categories
    • wp_mobiloud_notifications
  • This plugin does not fully uninstall, leaving 54 options in the database
    • ml_contact_link_email
    • ml_app_subscription_block_content
    • ml_sections_menu
    • widget_theysaidso_widget
    • ml_page_title_enabled
    • ml_allow_landscape
    • ml_app_version
    • ml_article_list_include_post_types
    • can_compress_scripts
    • ml_tabbed_navigation_enabled
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/mobiloud-mobile-app-plugin/views/welcome_footer.php
    • > /wp-content/plugins/mobiloud-mobile-app-plugin/views/welcome_header.php
    • > /wp-content/plugins/mobiloud-mobile-app-plugin/views/get_started_menu_config.php
    • > /wp-content/plugins/mobiloud-mobile-app-plugin/templates/views/related.php
  • 92× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Mobiloud' not found in wp-content/plugins/mobiloud-mobile-app-plugin/views/sidebar.php:3
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/mobiloud-mobile-app-plugin/templates/views/related.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'Mobiloud' not found in wp-content/plugins/mobiloud-mobile-app-plugin/templates/list/loop.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mobiloud-mobile-app-plugin/views/header.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Mobiloud' not found in wp-content/plugins/mobiloud-mobile-app-plugin/views/block-preview.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Blocks\\Setup' not found in wp-content/plugins/mobiloud-mobile-app-plugin/blocks/src/blocks/product-carousel/register.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobiloud-mobile-app-plugin/templates/sections/sections.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mobiloud-mobile-app-plugin/views/settings_paywall.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Blocks\\get_values_from_json_attr_keys() in wp-content/plugins/mobiloud-mobile-app-plugin/blocks/src/blocks/divider/dynamic_block.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mobiloud-mobile-app-plugin/comments/disqus_count.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

mobiloud-mobile-app-plugin/mobiloud.php 92% from 13 tests

The main PHP file in "MobiLoud - WordPress Mobile Apps - Convert your WordPress Website to Native Mobile Apps" ver. 4.4.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mobiloud-mobile-app-plugin.php" instead of "mobiloud.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin128,798 lines of code in 303 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7915,37432,54564,139
CSS464,0626,62533,899
PHP1193,1493,50620,040
SVG22037,317
Sass264652482,276
LESS3776476
TypeScript180840373
JSON600277
XML1001

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.42
Average class complexity51.97
▷ Minimum class complexity1.00
▷ Maximum class complexity531.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes00.00%
Methods475
▷ Static methods18538.95%
▷ Public methods37178.11%
▷ Protected methods408.42%
▷ Private methods6413.47%
Functions193
▷ Named functions14474.61%
▷ Anonymous functions4925.39%
Constants50
▷ Global constants3570.00%
▷ Class constants1530.00%
▷ Public constants15100.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
106 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icons/ios_menu_icon_white.png1.01KB0.21KB▼ 79.50%
assets/icons/payment.png0.46KB0.31KB▼ 32.34%
assets/icons/location_on.png1.15KB0.58KB▼ 49.41%
assets/icons/info.png1.08KB0.55KB▼ 48.64%
assets/icons/view_headline.png0.36KB0.24KB▼ 34.14%