84% appmax

Code Review | Appmax

WordPress plugin Appmax scored84%from 54 tests.

About plugin

  • Plugin page: appmax
  • Plugin version: 1.0.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2023
  • Latest release: May 10, 2023
  • Number of updates: 14
  • Update frequency: every 7.0 days
  • Top authors: appmaxplataforma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,052 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.90ms] Passed 4 tests

A check of server-side resources used by Appmax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.02 ▼0.60
Dashboard /wp-admin3.31 ▼0.0443.78 ▼9.76
Posts /wp-admin/edit.php3.36 ▲0.0043.39 ▼5.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.17 ▼4.12
Media Library /wp-admin/upload.php3.23 ▲0.0037.98 ▲5.62

Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Appmax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.931.69 ▲0.0739.55 ▲2.33
Dashboard /wp-admin2,206 ▲515.86 ▲0.17107.06 ▼3.2140.73 ▼3.67
Posts /wp-admin/edit.php2,089 ▲212.06 ▲0.0338.38 ▲0.9537.03 ▲2.95
Add New Post /wp-admin/post-new.php1,533 ▲523.05 ▲4.73676.27 ▲40.5261.00 ▼4.30
Media Library /wp-admin/upload.php1,382 ▼64.16 ▲0.0094.85 ▲1.0540.12 ▼0.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/appmax/includes/webhooks/class-appmax-payments-webhook-events.php on line 153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/appmax/templates/views/admin/validate-message.php:4
    • > PHP Parse error
      syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-due-date-generator.php on line 49
    • > PHP Parse error
      syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/appmax/includes/core/class-appmax-payments-scripts.php on line 142
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/appmax/templates/views/checkout/pix/pix-payment.php:2
    • > PHP Parse error
      syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/validation/class-appmax-payments-validator.php on line 54
    • > PHP Parse error
      syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/appmax/includes/core/class-appmax-payments-api.php on line 52
    • > PHP Parse error
      syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-post-information.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/appmax/templates/views/admin/lib-calendar-not-installed.php:3
    • > PHP Parse error
      syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/appmax/includes/core/class-appmax-payments-interest.php on line 51

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, payment, appmax

appmax/appmax-payments.php 92% from 13 tests

"Appmax" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("appmax.php" instead of "appmax-payments.php")

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
Everything looks great! No dangerous files found in this plugin8,551 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript144133364,869
PHP678721,1303,682

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.61
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes56
▷ Abstract classes610.71%
▷ Concrete classes5089.29%
▷ Final classes00.00%
Methods244
▷ Static methods5823.77%
▷ Public methods20584.02%
▷ Protected methods83.28%
▷ Private methods3112.70%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants66
▷ Global constants812.12%
▷ Class constants5887.88%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin