Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.13ms] Passed 4 tests
This is a short check of server-side resources used by Klubraum Membership Request
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.88 ▲1.96 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.28 ▼15.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.29 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.42 ▼14.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.85 ▼11.37 |
Settings /wp-admin/admin.php?page=klubraum-membership-request-widget-settings | 3.22 | 28.56 |
Klubraum Membership Request /wp-admin/admin.php?page=klubraum-membership-request-widget | 3.22 | 30.08 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_kr_mr_membership_requests |
New WordPress options |
---|
kr_mr_introduction_text |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Klubraum Membership Request
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲248 | 13.62 ▼0.97 | 5.48 ▲3.87 | 42.87 ▼1.27 |
Dashboard /wp-admin | 2,283 ▲95 | 5.86 ▼0.04 | 105.58 ▼6.86 | 39.99 ▲1.66 |
Posts /wp-admin/edit.php | 2,175 ▲83 | 2.01 ▼0.00 | 35.60 ▲0.72 | 33.41 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.07 ▼0.02 | 632.40 ▼42.50 | 57.68 ▼0.92 |
Media Library /wp-admin/upload.php | 1,465 ▲77 | 4.20 ▼0.04 | 97.52 ▲0.63 | 46.30 ▲4.41 |
Settings /wp-admin/admin.php?page=klubraum-membership-request-widget-settings | 898 | 2.06 | 38.41 | 34.90 |
Klubraum Membership Request /wp-admin/admin.php?page=klubraum-membership-request-widget | 885 | 2.04 | 24.11 | 26.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/public/class-klubraum-membership-request-widget-public.php:221
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/admin/class-klubraum-membership-request-widget-admin.php:150
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/admin/partials/klubraum-membership-request-widget-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: spam, comments
klubraum-membership-request/klubraum-membership-request-widget.php 85% from 13 tests
"Klubraum Membership Request" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("klubraum-membership-request.php" instead of "klubraum-membership-request-widget.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected707 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 146 | 586 | 492 |
CSS | 2 | 2 | 8 | 79 |
JavaScript | 2 | 9 | 54 | 69 |
PO File | 1 | 27 | 37 | 67 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 7 | 22.58% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/klubraum_logo_blue.png | 13.39KB | 7.40KB | ▼ 44.78% |