78% appful

Code Review | appful Mobile App Plugin [OLD - NEW VERSION BELOW]

WordPress plugin appful Mobile App Plugin [OLD - NEW VERSION BELOW] scored78%from 54 tests.

About plugin

  • Plugin page: appful
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Jun 16, 2023
  • Number of updates: 409
  • Update frequency: every 7.0 days
  • Top authors: oskarn97 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /50,798 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.61MB] [CPU: ▼12.74ms] Passed 4 tests

This is a short check of server-side resources used by appful Mobile App Plugin [OLD - NEW VERSION BELOW]
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.06 ▼6.12
Dashboard /wp-admin3.37 ▲0.0743.32 ▼3.08
Posts /wp-admin/edit.php3.43 ▲0.0755.33 ▲7.58
Add New Post /wp-admin/post-new.php3.22 ▼2.6734.50 ▼49.08
Media Library /wp-admin/upload.php3.30 ▲0.0738.73 ▲7.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
appful_been_installed
appful_ssl_available
appful_last_ssl_check
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_appful
...

Browser metrics Passed 4 tests

An overview of browser requirements for appful Mobile App Plugin [OLD - NEW VERSION BELOW]
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.17 ▼1.053.93 ▲1.8537.26 ▼11.47
Dashboard /wp-admin2,222 ▲374.82 ▼0.97111.01 ▲7.4041.85 ▲0.39
Posts /wp-admin/edit.php2,109 ▲172.13 ▲0.0939.54 ▲5.0334.89 ▲1.87
Add New Post /wp-admin/post-new.php1,532 ▲423.23 ▲5.12697.34 ▲83.6046.57 ▼10.02
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.0694.90 ▼12.6341.17 ▼3.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_recent-posts
    • db_upgraded
    • appful_last_ssl_check
    • widget_recent-comments
    • can_compress_scripts
    • appful_been_installed
    • appful_ssl_available
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • appful_ip
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/appful/plugins/wp-polls.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appful/singletons/taxonomy.php:129
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/appful/models/widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #6, #8 in appful/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

appful/appful.php 92% from 13 tests

The primary PHP file in "appful Mobile App Plugin [OLD - NEW VERSION BELOW]" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 316 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,917 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP238754954,439
CSS3652368
JavaScript1212272
SVG10138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity39.36
▷ Minimum class complexity1.00
▷ Maximum class complexity317.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods196
▷ Static methods00.00%
▷ Public methods18996.43%
▷ Protected methods73.57%
▷ Private methods00.00%
Functions29
▷ Named functions2379.31%
▷ Anonymous functions620.69%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.27MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/background.png250.46KB128.68KB▼ 48.62%
assets/img/app-store-button.png1.21KB1.29KB0.00%
assets/img/appful-logo.png22.79KB9.78KB▼ 57.11%
assets/img/play-store-button.png3.44KB2.39KB▼ 30.47%