10% arlo-training-and-event-management-system

Code Review | Arlo Training Management Software

WordPress plugin Arlo Training Management Software scored10%from 54 tests.

About plugin

  • Plugin page: arlo-training-and...
  • Plugin version: 4.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2015
  • Latest release: Apr 26, 2023
  • Number of updates: 106
  • Update frequency: every 25.8 days
  • Top authors: ArloSoftware (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

400+ active /17,251 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲3.93MB] [CPU: ▲37.38ms] Passed 4 tests

Analyzing server-side resources used by Arlo Training Management Software
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.10 ▲3.6470.50 ▲32.08
Dashboard /wp-admin7.36 ▲4.0581.16 ▲32.86
Posts /wp-admin/edit.php7.42 ▲4.0695.69 ▲49.93
Add New Post /wp-admin/post-new.php9.91 ▲4.02132.78 ▲40.66
Media Library /wp-admin/upload.php7.22 ▲3.9977.33 ▲43.92
Logs /wp-admin/admin.php?page=arlo-for-wordpress-logs7.2275.11
Presenters /wp-admin/admin.php?page=arlo-for-wordpress-presenters7.2971.43
Events /wp-admin/admin.php?page=arlo-for-wordpress-events7.3469.70
Templates /wp-admin/admin.php?page=arlo-for-wordpress-templates7.2873.99
Online Activities /wp-admin/admin.php?page=arlo-for-wordpress-onlineactivities7.2866.96
Arlo settings /wp-admin/admin.php?page=arlo-for-wordpress7.4491.31
Sessions /wp-admin/admin.php?page=arlo-for-wordpress-sessions7.3069.35
Venues /wp-admin/admin.php?page=arlo-for-wordpress-venues7.2974.24

Server storage [IO: ▲7.50MB] [DB: ▲0.08MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 480 new files
Database: 23 new tables, 20 new options
New tables
wp_arlo_import_lock
wp_arlo_eventtemplates_presenters
wp_arlo_onlineactivities_tags
wp_arlo_categories
wp_arlo_messages
wp_arlo_tags
wp_arlo_timezones
wp_arlo_async_task_data
wp_arlo_venues
wp_arlo_events_presenters
...
New WordPress options
widget_arlo-for-wordpress-upcoming-widget
widget_theysaidso_widget
arlo_import_disabled
arlo_schema_version
widget_arlo-for-wordpress-region-selector
arlo_new_url_structure
widget_arlo-for-wordpress-search-widget
arlo_updated
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Arlo Training Management Software
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,028 ▲28213.88 ▼0.418.04 ▲6.0538.30 ▼3.95
Dashboard /wp-admin2,299 ▲1115.06 ▲0.14114.72 ▲10.4242.33 ▼1.98
Posts /wp-admin/edit.php2,185 ▲992.34 ▲0.3350.94 ▲16.3036.29 ▲4.12
Add New Post /wp-admin/post-new.php1,566 ▲4222.15 ▼1.09671.87 ▼17.1373.51 ▲12.14
Media Library /wp-admin/upload.php1,481 ▲934.39 ▲0.22103.02 ▲4.8745.81 ▲3.44
Logs /wp-admin/admin.php?page=arlo-for-wordpress-logs1,2042.3037.6030.56
Presenters /wp-admin/admin.php?page=arlo-for-wordpress-presenters1,0112.3334.7827.30
Events /wp-admin/admin.php?page=arlo-for-wordpress-events1,1642.3031.3830.91
Templates /wp-admin/admin.php?page=arlo-for-wordpress-templates1,0872.3736.4930.50
Online Activities /wp-admin/admin.php?page=arlo-for-wordpress-onlineactivities1,0402.3631.2931.39
Arlo settings /wp-admin/admin.php?page=arlo-for-wordpress6,7994.6181.89128.32
Sessions /wp-admin/admin.php?page=arlo-for-wordpress-sessions1,0952.3733.6628.92
Venues /wp-admin/admin.php?page=arlo-for-wordpress-venues1,0742.3732.6229.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • can_compress_scripts
    • arlo_review_notice_date
    • widget_arlo-for-wordpress-search-widget
    • widget_arlo-for-wordpress-upcoming-widget
    • widget_recent-comments
    • widget_arlo-for-wordpress-region-selector
    • widget_theysaidso_widget
    • db_upgraded
    • arlo_settings
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/events.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/event.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/venues.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/venue.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/eventsearch.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/schedule.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/upcoming.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/presenter.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/presenters.php
    • > /wp-content/plugins/arlo-training-and-event-management-system/admin/includes/codes/oa.php
  • 54× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/arlo-training-and-event-management-system/widgets/region-selector/views/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Arlo_For_Wordpress' not found in wp-content/plugins/arlo-training-and-event-management-system/widgets/upcoming-widget/views/admin.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/arlo-training-and-event-management-system/admin/includes/class-arlo-for-wordpress-lists.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/arlo-training-and-event-management-system/admin/views/list.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Arlo\\Importer\\BaseImporter' not found in wp-content/plugins/arlo-training-and-event-management-system/includes/importer/arlo-download.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/arlo-training-and-event-management-system/admin/includes/class-arlo-for-wordpress-lists.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/arlo-training-and-event-management-system/admin/includes/class-arlo-for-wordpress-lists.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/arlo-training-and-event-management-system/admin/includes/class-arlo-for-wordpress-loglist.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/arlo-training-and-event-management-system/widgets/region-selector/class-arlo-for-wordpress-region-selector.php:10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/arlo-training-and-event-management-system/admin/includes/class-arlo-for-wordpress-lists.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=arlo-for-wordpress
    • > Network (severe)
    https://api.arlo.co/presentations/api/2012-02-01/pub/resources/eventsearch/?filter=templatecode%3DLEAR1&fields=ViewUri%2CRegistrationInfo%2CStartDateTime&top=1&callback=LS_EventSearchResource_callback_531005326 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=arlo-for-wordpress
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=arlo-for-wordpress#theme - Refused to execute script from 'https://api.arlo.co/presentations/api/2012-02-01/pub/resources/eventsearch/?filter=templatecode%3DLEAR1&fields=ViewUri%2CRegistrationInfo%2CStartDateTime&top=1&callback=LS_EventSearchResource_callback_531005326' because its MIME type ('') is not executable, and strict MIME type checking is enabled.

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tags: There are too many tags (29 tag instead of maximum 10)
You can look at the official readme.txt

arlo-training-and-event-management-system/arlo-for-wordpress.php 85% from 13 tests

This is the main PHP file of "Arlo Training Management Software" version 4.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("arlo-training-and-event-management-system.php" instead of "arlo-for-wordpress.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 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
No dangerous file extensions were detected98,655 lines of code in 199 files:
LanguageFilesBlank linesComment linesLines of code
CSS364,30471867,041
PHP1084,3952,27715,726
JavaScript281,3691,1339,654
SVG85124,843
PO File34045321,035
JSON1400237
Markdown2250119

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.28
▷ Minimum class complexity1.00
▷ Maximum class complexity304.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes83
▷ Abstract classes22.41%
▷ Concrete classes8197.59%
▷ Final classes00.00%
Methods776
▷ Static methods24731.83%
▷ Public methods50064.43%
▷ Protected methods384.90%
▷ Private methods23830.67%
Functions159
▷ Named functions2716.98%
▷ Anonymous functions13283.02%
Constants34
▷ Global constants411.76%
▷ Class constants3088.24%
▷ Public constants30100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.38MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/be.software.designers/images/home_software_pattern.png2.59KB2.66KB0.00%
admin/assets/img/icon-20x20-blue.png1.37KB0.77KB▼ 43.83%
admin/assets/img/arlo-logo.png19.08KB2.76KB▼ 85.52%
themes/be.software.designers/images/image1.png35.52KB15.02KB▼ 57.73%
admin/assets/img/icon-20x20.png1.30KB0.77KB▼ 40.80%