10% loymaxapp

Code Review | LoymaxWebApp

WordPress plugin LoymaxWebApp scored10%from 54 tests.

About plugin

  • Plugin page: loymaxapp
  • Plugin version: 3.4.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2018
  • Latest release: Feb 21, 2023
  • Number of updates: 74
  • Update frequency: every 23.0 days
  • Top authors: loymax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,715 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/loymaxapp/includes/loymax-updater.php+133
    Undefined index: component

Server metrics [RAM: ▲0.09MB] [CPU: ▼18.09ms] Passed 4 tests

Server-side resources used by LoymaxWebApp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2429.25 ▼12.70
Dashboard /wp-admin3.45 ▲0.1538.20 ▼16.37
Posts /wp-admin/edit.php3.52 ▲0.1639.48 ▼12.90
Add New Post /wp-admin/post-new.php5.70 ▼0.1973.95 ▼30.39
Media Library /wp-admin/upload.php3.45 ▲0.2334.22 ▼2.78
/wp-admin/index.php?page=loymax-setup3.0417.98

Server storage [IO: ▲1.71MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 53 new files
Database: 2 new tables, 9 new options
New tables
wp_loymax_components
wp_loymax
New WordPress options
widget_recent-posts
loymax_install_wizard_in_progress
widget_theysaidso_widget
widget_recent-comments
widget_loymax-widget
theysaidso_admin_options
can_compress_scripts
jal_db_version
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by LoymaxWebApp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,370 ▲60917.77 ▲3.1770.64 ▲68.7639.94 ▼5.24
Dashboard /wp-admin2,242 ▲394.87 ▼0.01117.75 ▲0.1644.44 ▼2.37
Posts /wp-admin/edit.php2,121 ▲212.05 ▼0.0136.20 ▼10.4733.54 ▼1.85
Add New Post /wp-admin/post-new.php1,557 ▲2623.30 ▲0.03666.44 ▼9.3456.50 ▲4.50
Media Library /wp-admin/upload.php1,421 ▲214.17 ▼0.11102.85 ▼14.5545.74 ▼3.95
/wp-admin/index.php?page=loymax-setup3162.0628.6041.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_loymax-widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=loymax-setup
    • > Notice in wp-content/plugins/loymaxapp/loymax-app.php+180
    Undefined index: step
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=loymax-setup
    • > Notice in wp-admin/includes/class-wp-site-health.php+94
    Trying to get property 'id' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/loymaxapp/loymax-app.php on line 38
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/loymaxapp/loymax-app.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/loymaxapp/widget/loymax-app-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/loymaxapp/loymax-app.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2 in loymaxapp/assets to your readme.txt
You can take inspiration from this readme.txt

loymaxapp/loymax-app.php 85% from 13 tests

This is the main PHP file of "LoymaxWebApp" version 3.4.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("loymaxapp.php" instead of "loymax-app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,887 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,2661,3297,369
PHP182463952,828
YAML2001,086
CSS3176281,082
PO File115881365
SVG1390156
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.40
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods99
▷ Static methods1616.16%
▷ Public methods6262.63%
▷ Protected methods00.00%
▷ Private methods3737.37%
Functions20
▷ Named functions00.00%
▷ Anonymous functions20100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/gpaywallet.png6.31KB3.21KB▼ 49.17%
public/images/paid.png0.58KB0.38KB▼ 34.95%
public/images/wallet.png6.49KB3.57KB▼ 44.98%
public/images/noimage.png2.81KB2.50KB▼ 11.28%