84% wild-apricot-login

Code Review | Wild Apricot Login

WordPress plugin Wild Apricot Login scored84%from 54 tests.

About plugin

  • Plugin page: wild-apricot-login
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Dec 14, 2022
  • Number of updates: 78
  • Update frequency: every 35.1 days
  • Top authors: Wild Apricot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /11,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▲5.68ms] Passed 4 tests

An overview of server-side resources used by Wild Apricot Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7042.97 ▲3.27
Dashboard /wp-admin4.01 ▲0.7051.23 ▲8.03
Posts /wp-admin/edit.php4.06 ▲0.7048.28 ▲3.54
Add New Post /wp-admin/post-new.php6.55 ▲0.6687.89 ▲9.33
Media Library /wp-admin/upload.php3.87 ▲0.6441.10 ▲7.89
Wild Apricot Login /wp-admin/options-general.php?page=wa_integration_settings_page3.8534.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 9 new options
New WordPress options
widget_wa_login_widget
wa_integration_options
db_upgraded
wa_integration_settings
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Wild Apricot Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲5814.28 ▼0.081.65 ▲0.0440.52 ▲1.68
Dashboard /wp-admin2,196 ▲185.58 ▼0.0986.54 ▼13.0639.28 ▼1.60
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0734.89 ▼2.6134.48 ▼0.74
Add New Post /wp-admin/post-new.php1,544 ▲1818.22 ▼4.63625.94 ▲22.6659.11 ▲3.07
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.0195.22 ▼12.9243.71 ▼0.39
Wild Apricot Login /wp-admin/options-general.php?page=wa_integration_settings_page8691.7125.2526.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_wa_login_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_Module' not found in wp-content/plugins/wild-apricot-login/Modules/Authorization/Module.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_ShortCode' not found in wp-content/plugins/wild-apricot-login/Modules/ContentRestriction/ShortCode.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'WA_Modules_Interfaces_IModule' not found in wp-content/plugins/wild-apricot-login/Modules/Interfaces/ISettingsManager.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_Options' not found in wp-content/plugins/wild-apricot-login/Modules/Core/Session/Data.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'WA_Modules_Interfaces_ISetting' not found in wp-content/plugins/wild-apricot-login/Modules/Base/Setting/Base.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_Setting_Text' not found in wp-content/plugins/wild-apricot-login/Modules/Authorization/Settings/LoginButtonLabel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wild-apricot-login/Modules/Authorization/WaLogin/Widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_ShortCode' not found in wp-content/plugins/wild-apricot-login/Modules/Authorization/WaLogin/ShortCode.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'WA_Modules_Interfaces_ISessionManager' not found in wp-content/plugins/wild-apricot-login/Modules/Core/Session/Manager.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WA_Modules_Base_Setting_HiddenText' not found in wp-content/plugins/wild-apricot-login/Modules/Core/Settings/ApiCredentials.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: wild apricot, events, members, single sign-on, membership management...

wild-apricot-login/wild-apricot-login.php Passed 13 tests

Analyzing the main PHP file in "Wild Apricot Login" version 1.0.15
110 characters long description:
Provides single sign-on service for Wild Apricot members to provide access to restricted Wild Apricot content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,158 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PHP57887373,844
JavaScript5530280
CSS14034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.77
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces9
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes00.00%
Methods389
▷ Static methods287.20%
▷ Public methods30879.18%
▷ Protected methods246.17%
▷ Private methods5714.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants97
▷ Global constants11.03%
▷ Class constants9698.97%
▷ Public constants96100.00%

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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Modules/ContentRestriction/img/wa_restricted_shortcode_editor_button.png0.38KB0.32KB▼ 15.90%
Modules/Authorization/img/wa_login_shortcode_editor_button.png0.44KB0.37KB▼ 14.92%