79% ledenbeheer-external-connection

Code Review | Ledenbeheer

WordPress plugin Ledenbeheer scored79%from 54 tests.

About plugin

  • Plugin page: ledenbeheer-exter...
  • Plugin version: 2.0.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Oct 11, 2020
  • Latest release: Mar 3, 2022
  • Number of updates: 120
  • Update frequency: every 4.5 days
  • Top authors: ledenbeheer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,841 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
Install script ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼9.49ms] Passed 4 tests

An overview of server-side resources used by Ledenbeheer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.64 ▲10.50
Dashboard /wp-admin3.44 ▲0.1050.72 ▼8.26
Posts /wp-admin/edit.php3.48 ▲0.1354.77 ▲7.15
Add New Post /wp-admin/post-new.php3.30 ▼2.5841.85 ▼43.01
Media Library /wp-admin/upload.php3.37 ▲0.1442.67 ▲6.15
Ledenbeheer /wp-admin/admin.php?page=ledenbeheer3.3837.30
Instellingen /wp-admin/options-general.php?page=ledenbeheer3.3837.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 26 new options
New WordPress options
lb_status
widget_theysaidso_widget
lb_sync_profiles
lb_main_courses_page
lb_courses_display
lb_club_nid
widget_recent-comments
lb_sync_activities
lb_filter_profiles
lb_main_activities_page
...

Browser metrics Passed 4 tests

A check of browser resources used by Ledenbeheer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.24 ▼0.111.70 ▲0.1242.63 ▲3.99
Dashboard /wp-admin2,244 ▲735.56 ▼0.0184.33 ▼5.8338.98 ▲0.30
Posts /wp-admin/edit.php2,146 ▲462.01 ▲0.0640.84 ▲3.8437.36 ▲0.23
Add New Post /wp-admin/post-new.php1,566 ▲3822.90 ▲0.12647.15 ▼16.6255.51 ▲3.06
Media Library /wp-admin/upload.php1,446 ▲464.28 ▲0.0795.57 ▼21.5040.93 ▼3.33
Ledenbeheer /wp-admin/admin.php?page=ledenbeheer1,2782.3023.0432.61
Instellingen /wp-admin/options-general.php?page=ledenbeheer1,2752.1323.3730.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 26 options
    • lb_course_fields
    • lb_syncing
    • lb_main_profiles_page
    • widget_recent-comments
    • widget_recent-posts
    • lb_sync_profiles
    • lb_skip_activity_detail
    • lb_main_activities_page
    • lb_profile_fields
    • lb_api_key
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ledenbeheer-external-connection/ledenbeheer-external-connection.php
  • 21× 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 get_header() in wp-content/plugins/ledenbeheer-external-connection/views/archive-activities.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/ledenbeheer-external-connection/templates/profiles-slug.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ledenbeheer-external-connection/src/activities.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ledenbeheer-external-connection/views/courses/show.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ledenbeheer-external-connection/views/archive-profiles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ledenbeheer-external-connection/setup.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/ledenbeheer-external-connection/src/profiles.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/ledenbeheer-external-connection/src/profiles.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ledenbeheer-external-connection/views/single-activity.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ledenbeheer-external-connection/crons.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No plugin tags provided

ledenbeheer-external-connection/ledenbeheer-external-connection.php Passed 13 tests

"Ledenbeheer" version 2.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
41 characters long description:
Koppeling tussen Wordpress en Ledenbeheer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,748 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP222811162,461
CSS3360191
PO File1191554
JavaScript27042

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions81
▷ Named functions6580.25%
▷ Anonymous functions1619.75%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png4.17KB2.89KB▼ 30.68%
assets/img/marker-icon.png1.43KB1.55KB0.00%
assets/img/marker-shadow.png0.60KB1.16KB0.00%