Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.89MB] [CPU: ▲7.51ms] Passed 4 tests
Analyzing server-side resources used by MemberWunder LMS - Learning Management System - Ein WordPress e-Learning Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.86 | 61.50 ▲16.85 |
Dashboard /wp-admin | 5.21 ▲1.91 | 61.31 ▲10.56 |
Posts /wp-admin/edit.php | 5.26 ▲1.91 | 65.35 ▲16.95 |
Add New Post /wp-admin/post-new.php | 8.01 ▲2.12 | 100.10 ▼12.53 |
Media Library /wp-admin/upload.php | 5.13 ▲1.91 | 51.73 ▲15.14 |
MemberWunder /wp-admin/options-general.php?page=memberwunder | 5.19 | 55.91 |
MemberWunder /wp-admin/edit.php?post_type=twmembership | 5.20 | 53.75 |
Add course /wp-admin/post-new.php?post_type=twmembership | 8.01 | 109.60 |
Server storage [IO: ▲3.15MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 263 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_twm_user_lessons |
wp_twm_user_lessons_quizes |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
twmembership_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MemberWunder LMS - Learning Management System - Ein WordPress e-Learning Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 14.72 ▲0.08 | 1.77 ▲0.18 | 47.57 ▲9.09 |
Dashboard /wp-admin | 2,267 ▲90 | 5.63 ▼0.04 | 94.94 ▲5.92 | 42.70 ▲0.38 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.02 ▲0.02 | 38.46 ▲3.03 | 33.43 ▼7.24 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.20 ▼0.00 | 654.42 ▼12.73 | 52.18 ▼1.69 |
Media Library /wp-admin/upload.php | 1,449 ▲46 | 4.19 ▼0.05 | 97.88 ▼10.86 | 43.29 ▼4.00 |
MemberWunder /wp-admin/options-general.php?page=memberwunder | 5,360 | 11.38 | 411.46 | 65.05 |
MemberWunder /wp-admin/edit.php?post_type=twmembership | 1,280 | 3.37 | 76.70 | 31.90 |
Add course /wp-admin/post-new.php?post_type=twmembership | 6,825 | 20.85 | 972.97 | 45.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_twm_user_lessons_quizes
- wp_twm_user_lessons
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- twmembership_version
- theysaidso_admin_options
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=memberwunder
- > Notice in wp-content/plugins/memberwunder/include/services/smtp.php+294
Trying to access array offset on value of type bool
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=memberwunder
- > Notice in wp-content/plugins/memberwunder/include/services/smtp.php+294
Trying to access array offset on value of type null
SRP 0% 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
Almost there! Just fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/checkbox.php
- > /wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/full_link.php
- > /wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/text.php
- > /wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/textarea.php
- > /wp-content/plugins/memberwunder/assets/frontend/views/template/blocks/general/message.php
- > /wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/select.php
- 103× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/memberwunder/templates/layout/header.php:1
- > PHP Notice
Undefined variable: options in wp-content/plugins/memberwunder/assets/dashboard/views/settings/fields/select.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/memberwunder/templates/layout/header.php:1
- > PHP Notice
Undefined variable: status in wp-content/plugins/memberwunder/assets/frontend/views/template/blocks/general/message.php on line 3
- > PHP Notice
Undefined variable: field_id in wp-content/plugins/memberwunder/assets/dashboard/views/nav_menu/pages.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/memberwunder/templates/layout/head.php:1
- > PHP Fatal error
Uncaught Error: Class 'MemberWunder\\Controller\\Options\\Sections\\Section' not found in wp-content/plugins/memberwunder/include/controller/options/sections/leaderboard.php:4
- > PHP Fatal error
Uncaught Error: Class 'MemberWunder\\Controller\\Options\\Sections\\Section' not found in wp-content/plugins/memberwunder/include/controller/options/sections/design.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/memberwunder/templates/reset-page.php:1
- > PHP Fatal error
Uncaught Error: Class 'MemberWunder\\Helpers\\View' not found in wp-content/plugins/memberwunder/assets/dashboard/views/notice.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=twmembership
- > Network (severe)
wp-content/plugins/tw-membership/assets/css/images/tooltip.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=twmembership
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
memberwunder/memberwunder.php 77% from 13 tests
The entry point to "MemberWunder LMS - Learning Management System - Ein WordPress e-Learning Plugin" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Plugin Name: Please shorten the plugin name (currently 79 characters long instead of max. 70)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
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 plugin18,618 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 2,014 | 3,483 | 10,861 |
LESS | 15 | 80 | 229 | 2,899 |
CSS | 6 | 114 | 81 | 1,816 |
JavaScript | 18 | 380 | 116 | 1,719 |
PO File | 1 | 599 | 838 | 1,314 |
SVG | 9 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 372.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 54 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 461 | |
▷ Static methods | 165 | 35.79% |
▷ Public methods | 235 | 50.98% |
▷ Protected methods | 200 | 43.38% |
▷ Private methods | 26 | 5.64% |
Functions | 72 | |
▷ Named functions | 52 | 72.22% |
▷ Anonymous functions | 20 | 27.78% |
Constants | 18 | |
▷ Global constants | 15 | 83.33% |
▷ Class constants | 3 | 16.67% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
71 PNG files occupy 1.37MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/public/css/img/ok.png | 7.23KB | 3.32KB | ▼ 54.11% |
assets/dashboard/images/settings/hints/metabox-text-color.png | 55.47KB | 55.64KB | 0.00% |
assets/css/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
assets/css/images/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |
templates/public/css/img/slider_arrows.png | 3.73KB | 0.90KB | ▼ 75.84% |