67% wpappninja

Code Review | WPMobile.App — Android and iOS Mobile Application

WordPress plugin WPMobile.App — Android and iOS Mobile Application scored67%from 54 tests.

About plugin

  • Plugin page: wpappninja
  • Plugin version: 11.38
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2015
  • Latest release: Nov 15, 2023
  • Number of updates: 907
  • Update frequency: every 3.3 days
  • Top authors: AmauriC (100%)

Code review

54 tests

User reviews

148 reviews

Install metrics

5,000+ active /447,408 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.90MB] [CPU: ▲18.94ms] Passed 4 tests

This is a short check of server-side resources used by WPMobile.App — Android and iOS Mobile Application
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5562.29 ▲23.14
Dashboard /wp-admin6.65 ▲3.3165.19 ▲5.69
Posts /wp-admin/edit.php6.77 ▲3.4270.37 ▲24.49
Add New Post /wp-admin/post-new.php9.29 ▲3.41120.69 ▲22.46
Media Library /wp-admin/upload.php6.57 ▲3.3455.47 ▲24.46
Preview /wp-admin/admin.php?page=wpappninja_preview6.6464.08
Publication /wp-admin/admin.php?page=wpappninja_publish6.6368.08
Notifications /wp-admin/admin.php?page=wpappninja_push6.6468.36
Statistics /wp-admin/admin.php?page=wpappninja_stats6.6457.07
QR Code /wp-admin/admin.php?page=wpappninja_qrcode6.6465.29
Theme /wp-admin/admin.php?page=wpappninja_theme6.6462.31
Promote /wp-admin/admin.php?page=wpappninja_promote6.6460.21
WPMobile.App /wp-admin/admin.php?page=wpappninja_home6.6453.59
Settings /wp-admin/admin.php?page=wpappninja6.6964.37
Advertising /wp-admin/admin.php?page=wpappninja_adserver6.6473.69

Server storage [IO: ▲9.64MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 947 new files
Database: 9 new tables, 17 new options
New tables
wp_wpappninja_ids
wp_wpappninja_push
wp_wpappninja_push_perso
wp_wpappninja_home_perso
wp_wpappninja_installs
wp_wpappninja_qrcode
wp_wpappninja_adserver
wp_wpappninja_stats
wp_wpappninja_stats_users
New WordPress options
wpmobile_enable_new_fcm
wpappninja_need_update
wpappninja_follow_tuto
widget_recent-posts
theysaidso_admin_options
wpappninja
theme_mods_wpappninja-full
db_upgraded
wpappninja_primary
wpappninja_start_premium_feature
...

Browser metrics Passed 4 tests

Checking browser requirements for WPMobile.App — Android and iOS Mobile Application
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17714.22 ▲0.091.88 ▲0.2442.75 ▲2.11
Dashboard /wp-admin2,259 ▲825.61 ▲0.0688.53 ▼9.5746.18 ▲7.87
Posts /wp-admin/edit.php2,161 ▲582.03 ▲0.0939.96 ▼1.1336.54 ▲0.36
Add New Post /wp-admin/post-new.php6,266 ▲4,74026.02 ▲2.75893.97 ▲291.0656.38 ▼4.68
Media Library /wp-admin/upload.php1,461 ▲614.21 ▲0.0196.65 ▼6.7742.47 ▼2.35
Preview /wp-admin/admin.php?page=wpappninja_preview1,7955.75102.15125.11
Publication /wp-admin/admin.php?page=wpappninja_publish1,6663.7767.1992.12
Notifications /wp-admin/admin.php?page=wpappninja_push2,5267.75178.64107.75
Statistics /wp-admin/admin.php?page=wpappninja_stats1,7815.33126.2686.33
QR Code /wp-admin/admin.php?page=wpappninja_qrcode1,7857.36152.8237.31
Theme /wp-admin/admin.php?page=wpappninja_theme4,0684.92157.6139.82
Promote /wp-admin/admin.php?page=wpappninja_promote1,2533.4164.1040.33
WPMobile.App /wp-admin/admin.php?page=wpappninja_home1,3494.1756.4094.09
Settings /wp-admin/admin.php?page=wpappninja10,2567.35179.27281.00
Advertising /wp-admin/admin.php?page=wpappninja_adserver2,8084.9294.1671.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • theme_mods_wpappninja-full
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • wpmobile_enable_new_fcm

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpappninja_stats
    • > Notice in wp-content/plugins/wpappninja/inc/stats/display.php+215
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpappninja_stats
    • > Notice in wp-content/plugins/wpappninja/inc/stats/display.php+215
    Trying to get property 'sub' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpappninja_stats
    • > Notice in wp-content/plugins/wpappninja/inc/stats/display.php+215
    Trying to get property 'ios' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpappninja_home
    • > Notice in wp-content/plugins/wpappninja/inc/admin/ui/home.php+123
    Undefined variable: langiframe
    • > GET request to /wp-admin/admin.php?page=wpappninja
    • > Notice in wp-content/plugins/wpappninja/inc/admin/ui/options.php+1034
    Undefined index: ios_background
    • > GET request to /wp-admin/admin.php?page=wpappninja
    • > Notice in wp-content/plugins/wpappninja/inc/admin/ui/options.php+1070
    Undefined index: logo

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
  • 85× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wpappninja/inc/admin/enqueue.php
    • > /wp-content/plugins/wpappninja/inc/3rd-party/wp-rocket.php
    • > /wp-content/plugins/wpappninja/inc/functions/lang.php
    • > /wp-content/plugins/wpappninja/inc/3rd-party/select2.php
    • > /wp-content/plugins/wpappninja/inc/admin/sdkupdate.php
    • > /wp-content/plugins/wpappninja/inc/api/read_enhanced.php
    • > /wp-content/plugins/wpappninja/inc/admin/ui/preview.php
    • > /wp-content/plugins/wpappninja/inc/admin/ui/auto.php
    • > /wp-content/plugins/wpappninja/uninstall.php
    • > /wp-content/plugins/wpappninja/inc/3rd-party/hide-errors.php
  • 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: menu_current in wp-content/plugins/wpappninja/inc/admin/ui/submenu.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpappninja/themes/wpappninja-full/index.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/wpappninja/themes/wpappninja-full/comments.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dynamic_sidebar() in wp-content/plugins/wpappninja/themes/wpappninja/footer.php:3
    • > PHP Notice
      Undefined variable: menu_current in wp-content/plugins/wpappninja/inc/admin/ui/submenu.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpappninja/themes/wpappninja/archive.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/wpappninja/themes/wpappninja-full/page.php:1
    • > PHP Notice
      Undefined variable: menu_current in wp-content/plugins/wpappninja/inc/admin/ui/submenu.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/wpappninja/themes/wpappninja-full/woocommerce.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpappninja/themes/wpappninja/index.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=wpappninja_stats
    • > Console-api (warning) in unknown
    https://code.highcharts.com/highcharts.js?ver=11.38 7:193 "Highcharts warning: Consider including the \"accessibility.js\" module to make your chart more usable for people with disabilities. Set the \"accessibility.enabled\" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module."

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: android app, mobile app, ios app

wpappninja/wpappninja.php Passed 13 tests

This is the main PHP file of "WPMobile.App — Android and iOS Mobile Application" version 11.38, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Android and iOS mobile application for any WordPress website. Easy setup, free test.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin121,281 lines of code in 566 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript183,3271,86238,681
CSS1310313830,118
PO File1812,52318,01028,117
PHP1116,7452,70322,016
SVG4050432,348
HTML1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 131)
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity116.00
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity131.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods113
▷ Static methods108.85%
▷ Public methods9684.96%
▷ Protected methods1614.16%
▷ Private methods10.88%
Functions316
▷ Named functions30997.78%
▷ Anonymous functions72.22%
Constants80
▷ Global constants7897.50%
▷ Class constants22.50%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
93 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/download.png0.38KB0.38KB0.00%
assets/images/icons/theme.png0.66KB0.43KB▼ 35.26%
assets/images/icons/coeur.png0.47KB0.47KB0.00%
assets/images/icons/beach.png0.95KB0.73KB▼ 22.47%
assets/images/os/ios.png1.23KB0.47KB▼ 61.84%