73% apperr

Code Review | Apperr - Android and iOS App builder for WooCommerce and WordPress

WordPress plugin Apperr - Android and iOS App builder for WooCommerce and WordPress scored73%from 54 tests.

About plugin

  • Plugin page: apperr
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Jan 29, 2022
  • Latest release: Mar 1, 2022
  • Number of updates: 6
  • Update frequency: every 5.3 days
  • Top authors: prasadkirpekar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲4.68MB] [CPU: ▲24.74ms] Passed 4 tests

Server-side resources used by Apperr - Android and iOS App builder for WooCommerce and WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.52 ▲5.0658.32 ▲18.16
Dashboard /wp-admin8.54 ▲5.2471.92 ▲26.38
Posts /wp-admin/edit.php8.54 ▲5.1875.43 ▲28.64
Add New Post /wp-admin/post-new.php9.15 ▲3.26112.28 ▲25.78
Media Library /wp-admin/upload.php8.54 ▲5.3164.61 ▲31.64
Add New /wp-admin/post-new.php?post_type=apperr_address8.5467.26
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5459.86
User Addresses /wp-admin/edit.php?post_type=apperr_address8.5462.27

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 193 new files
Database: no new tables, 13 new options
New WordPress options
fs_active_plugins
fs_gdpr
fs_accounts
fs_debug_mode
widget_theysaidso_widget
apperr_options_init
baseplugin_installed
baseplugin_version
theysaidso_admin_options
widget_recent-posts
...

Browser metrics Passed 4 tests

Apperr - Android and iOS App builder for WooCommerce and WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲28314.99 ▲0.641.86 ▲0.0427.31 ▼18.57
Dashboard /wp-admin2,410 ▲2226.41 ▲1.32140.27 ▲40.3147.00 ▲5.29
Posts /wp-admin/edit.php2,313 ▲2243.33 ▲1.3149.40 ▲8.2432.02 ▼3.79
Add New Post /wp-admin/post-new.php1,572 ▲4422.88 ▼0.32625.30 ▼0.4135.74 ▼16.17
Media Library /wp-admin/upload.php1,452 ▲644.18 ▼0.0280.84 ▼14.1243.39 ▼1.91
Add New /wp-admin/post-new.php?post_type=apperr_address1,6933.9967.6534.44
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,2733.1737.5726.65
User Addresses /wp-admin/edit.php?post_type=apperr_address1,2833.3843.2329.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/apperr/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • baseplugin_installed
    • apperr_options_init
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • fs_debug_mode
    • fs_gdpr
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/apperr/includes/Api/ApperrService.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/apperr/includes/Api.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/apperr/includes/Api/Example.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Donate link: Invalid URI found ("- https://paypal.me/prasadkirpekar")
The official readme.txt is a good inspiration

apperr/apperr.php 85% from 13 tests

"Apperr - Android and iOS App builder for WooCommerce and WordPress" version 0.1.0'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin31,550 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP1167,47716,36231,139
JavaScript83459199
JSON190194
CSS120015
LESS1003

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity76.39
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes11.92%
Methods1,204
▷ Static methods17414.45%
▷ Public methods86171.51%
▷ Protected methods151.25%
▷ Private methods32827.24%
Functions107
▷ Named functions9487.85%
▷ Anonymous functions1312.15%
Constants130
▷ Global constants10580.77%
▷ Class constants2519.23%
▷ Public constants25100.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
14 PNG files occupy 0.36MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/components/postgrid.png39.61KB16.16KB▼ 59.19%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/components/emptyspace.png11.48KB4.28KB▼ 62.75%
assets/img/template_il.png32.21KB15.69KB▼ 51.29%
assets/img/settings_il.png23.17KB10.58KB▼ 54.31%