84% apppresser

Code Review | AppPresser - Mobile App Framework

WordPress plugin AppPresser - Mobile App Framework scored84%from 54 tests.

About plugin

  • Plugin page: apppresser
  • Plugin version: 4.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2013
  • Latest release: Nov 16, 2023
  • Number of updates: 112
  • Update frequency: every 32.4 days
  • Top authors: scottopolis (38.39%)stillatmylinux (24.11%)apppresser (21.43%)marioshtika (14.29%)modemlooper (3.57%)

Code review

54 tests

User reviews

51 reviews

Install metrics

2,000+ active /200,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.34MB] [CPU: ▲7.30ms] Passed 4 tests

Server-side resources used by AppPresser - Mobile App Framework
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2950.82 ▲2.63
Dashboard /wp-admin4.67 ▲1.3260.13 ▼2.43
Posts /wp-admin/edit.php4.73 ▲1.3758.80 ▲13.42
Add New Post /wp-admin/post-new.php7.31 ▲1.42111.51 ▲18.64
Media Library /wp-admin/upload.php4.60 ▲1.3752.19 ▲15.56
Help / Support /wp-admin/admin.php?page=apppresser_sub_help_support4.6049.18
Settings /wp-admin/admin.php?page=apppresser_settings4.6659.62
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins4.7046.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
appplog_filename
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

AppPresser - Mobile App Framework: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲22813.38 ▼0.9611.57 ▲9.6239.72 ▼3.45
Dashboard /wp-admin2,279 ▲995.63 ▼0.0192.21 ▼5.3943.48 ▲1.15
Posts /wp-admin/edit.php2,196 ▲962.04 ▲0.1041.90 ▲4.2739.68 ▲3.97
Add New Post /wp-admin/post-new.php1,582 ▲5623.57 ▲0.55636.20 ▼90.3850.81 ▼5.67
Media Library /wp-admin/upload.php1,489 ▲894.13 ▼0.0999.20 ▼12.6946.82 ▼2.54
Help / Support /wp-admin/admin.php?page=apppresser_sub_help_support1,1413.4757.8032.56
Settings /wp-admin/admin.php?page=apppresser_settings1,6663.5268.3528.43
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0492.0523.9830.84

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • appplog_filename
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AppPresser' not found in wp-content/plugins/apppresser/inc/AppPresser_Theme_Switcher.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/apppresser/inc/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apppresser/inc/AppPresser_Logger.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'AppPresser' not found in wp-content/plugins/apppresser/inc/AppPresser_Ajax_Extras.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'AppPresser' not found in wp-content/plugins/apppresser/inc/AppPresser_Admin_Settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apppresser/inc/AppPresser_AppGeo.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apppresser/inc/AppPresser_Remote_Scripts.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apppresser/inc/AppPresser_WPAPI_Mods.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apppresser/inc/AppPresser_SystemInfo.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apppresser/inc/sample.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (AppPresser admin options page.) image required
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

apppresser/apppresser.php Passed 13 tests

The main file in "AppPresser - Mobile App Framework" v. 4.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
A mobile app development framework for WordPress.

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
Good job! No executable or dangerous file extensions detected7,938 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,9283,1866,283
CSS46837735
JavaScript9125192470
PO File2149228418
SVG10132

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity38.80
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods379
▷ Static methods6617.41%
▷ Public methods32485.49%
▷ Protected methods236.07%
▷ Private methods328.44%
Functions24
▷ Named functions1875.00%
▷ Anonymous functions625.00%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
css/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
css/smoothness/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%