78% appful-app

Code Review | Appful - WordPress to Native iOS/Android App in 5 Minutes

WordPress plugin Appful - WordPress to Native iOS/Android App in 5 Minutes scored78%from 54 tests.

About plugin

  • Plugin page: appful-app
  • Plugin version: 3.1.15
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: May 3, 2023
  • Latest release: Oct 23, 2023
  • Number of updates: 22
  • Update frequency: every 7.9 days
  • Top authors: appfulapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,568 total downloads

Benchmarks

Plugin footprint 83% 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: ▲2.78MB] [CPU: ▲18.80ms] Passed 4 tests

A check of server-side resources used by Appful - WordPress to Native iOS/Android App in 5 Minutes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.25 ▲1.7958.24 ▲21.57
Dashboard /wp-admin6.45 ▲3.1176.15 ▲16.59
Posts /wp-admin/edit.php6.49 ▲3.1368.00 ▲23.17
Add New Post /wp-admin/post-new.php8.98 ▲3.10106.83 ▲13.87
Media Library /wp-admin/upload.php6.36 ▲3.1361.88 ▲30.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 566 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
appful_children
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Appful - WordPress to Native iOS/Android App in 5 Minutes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13114.35 ▼0.211.76 ▲0.0541.38 ▲0.37
Dashboard /wp-admin2,286 ▲1065.73 ▲0.0989.80 ▲1.0440.36 ▼0.37
Posts /wp-admin/edit.php2,188 ▲912.08 ▲0.1038.76 ▲3.9835.56 ▲0.72
Add New Post /wp-admin/post-new.php1,563 ▲3522.42 ▼0.88673.94 ▲4.5456.70 ▼16.72
Media Library /wp-admin/upload.php1,488 ▲854.29 ▲0.0795.40 ▼1.2846.78 ▲7.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • appful_children
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Everything seems fine, however this is by no means 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/appful-app/appful-app.php
  • 218× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/Sandbox/SecurityNotAllowedPropertyError.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/appful-app/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/TokenParser/AutoEscapeTokenParser.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/Node/CheckToStringNode.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/appful-app/lib/vendor/guzzlehttp/psr7/src/Uri.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/Node/Expression/Binary/ConcatBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/Node/IfNode.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/appful-app/lib/vendor/twig/twig/src/Node/Expression/InlinePrint.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'AppfulPlugin\\Api\\Handlers\\RequestHandler' not found in wp-content/plugins/appful-app/includes/api/handlers/TagSyncRequestHandler.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'AppfulPlugin\\Api\\Handlers\\RequestHandler' not found in wp-content/plugins/appful-app/includes/api/handlers/CommentSyncRequestHandler.php:11

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

appful-app/appful-app.php Passed 13 tests

The principal PHP file in "Appful - WordPress to Native iOS/Android App in 5 Minutes" v. 3.1.15 is loaded by WordPress automatically on each request
132 characters long description:
Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes.

Code Analysis Passed 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
No dangerous file extensions were detected38,169 lines of code in 542 files:
LanguageFilesBlank linesComment linesLines of code
PHP5006,41510,09432,108
Markdown171,26803,650
JSON12001,406
CSS173110595
JavaScript3252139
YAML34133139
Twig440113
reStructuredText18510
make1409

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity7.11
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces57
Interfaces38
Traits3
Classes437
▷ Abstract classes112.52%
▷ Concrete classes42697.48%
▷ Final classes9221.60%
Methods2,321
▷ Static methods34614.91%
▷ Public methods2,02487.20%
▷ Protected methods522.24%
▷ Private methods24510.56%
Functions398
▷ Named functions18546.48%
▷ Anonymous functions21353.52%
Constants118
▷ Global constants65.08%
▷ Class constants11294.92%
▷ Public constants10089.29%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
frontend/assets/logo_bg.png18.02KB19.37KB0.00%
frontend/assets/logo.png22.79KB9.78KB▼ 57.11%