68% appexperts

Code Review | AppExperts - WordPress to Mobile App

WordPress plugin AppExperts - WordPress to Mobile App scored 68% from 54 tests.

About plugin

  • Plugin page: appexperts
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.8
  • WordPress version: 5.8.1
  • First release: Apr 6, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 29
  • Update frequency: every 7.9 days
  • Top authors: wpexpertsio (51.72%)appexpertsio (51.72%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 966 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲4.67MB] [CPU: ▼138.82ms] Passed 4 tests

Analyzing server-side resources used by AppExperts - WordPress to Mobile App
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.31 ▲5.5859.91 ▲38.19
Dashboard /wp-admin8.32 ▲5.2667.49 ▲22.52
Posts /wp-admin/edit.php8.32 ▲5.2160.40 ▲13.95
Add New Post /wp-admin/post-new.php8.32 ▲2.8944.99 ▼613.44
Media Library /wp-admin/upload.php8.32 ▲5.3161.20 ▲21.68
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.3253.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 237 new files
Database: no new tables, 5 new options
New WordPress options
fs_active_plugins
fs_gdpr
fs_debug_mode
fs_accounts
app_expert_settings

Browser metrics Passed 4 tests

AppExperts - WordPress to Mobile App: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12815.90 ▲0.039.27 ▼0.2346.89 ▼6.46
Dashboard /wp-admin3,004 ▲735.90 ▼0.15138.50 ▼8.30131.44 ▲13.61
Posts /wp-admin/edit.php2,775 ▲362.72 ▲0.0170.71 ▲6.9899.56 ▲6.80
Add New Post /wp-admin/post-new.php1,687 ▲8318.88 ▲0.39368.78 ▲9.44111.19 ▲0.79
Media Library /wp-admin/upload.php1,767 ▼435.01 ▲0.02152.94 ▲7.81128.82 ▲7.32
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,4732.0959.2775.92
App Experts /wp-admin/options-general.php?page=App Experts1,0762.2258.9365.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/appexperts/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 5 options in the database
    • app_expert_settings
    • fs_accounts
    • fs_debug_mode
    • fs_gdpr
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/appexperts/freemius/templates/ajax-loader.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/appexperts/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/appexperts/templates/woocommerce-cleanpage.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/appexperts/templates/cleanpage.php:13
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/appexperts/freemius/templates/account/partials/addon.php on line 6

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 Passed 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
5 plugin tags: android app, mobile, application, app, mobile app

appexperts/app-expert.php 85% from 13 tests

The main PHP file in "AppExperts - WordPress to Mobile App" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("appexperts.php" instead of "app-expert.php")

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin35,982 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1678,41317,05934,770
CSS15666468
Markdown21000382
JavaScript44166251
JSON400111

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity47.09
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes97
▷ Abstract classes22.06%
▷ Concrete classes9597.94%
▷ Final classes00.00%
Methods1,413
▷ Static methods21215.00%
▷ Public methods1,00871.34%
▷ Protected methods281.98%
▷ Private methods37726.68%
Functions99
▷ Named functions9797.98%
▷ Anonymous functions22.02%
Constants147
▷ Global constants10269.39%
▷ Class constants4530.61%
▷ Public constants45100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder.png0.77KB0.53KB▼ 31.43%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%