Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/efrontpro/admin/admin.php+159
Undefined index: ef-domain
Server metrics [RAM: ▼1.81MB] [CPU: ▼59.14ms] Passed 4 tests
Server-side resources used by eFront
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.88 ▼35.94 |
Dashboard /wp-admin | 2.19 ▼1.11 | 8.08 ▼43.40 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 7.28 ▼50.51 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 8.36 ▼106.72 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 7.04 ▼29.82 |
Dashboard /wp-admin/admin.php?page=efrontpro | 2.19 | 6.41 |
Setup /wp-admin/admin.php?page=efrontpro-setup | 2.19 | 7.36 |
Integrations /wp-admin/admin.php?page=efrontpro-integrations | 2.19 | 6.75 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: 4 new tables, 15 new options
New tables |
---|
wp_efrontpro_product_categories |
wp_efrontpro_products |
wp_efrontpro_categories |
wp_efrontpro_courses |
New WordPress options |
---|
ef-woocommerce-active |
theysaidso_admin_options |
ef_signup_page_id |
widget_recent-comments |
widget_recent-posts |
ef_courses_page_id |
ef_courses_page_title |
widget_theysaidso_widget |
ef_courses_page_name |
ef-apikey |
... |
Browser metrics Passed 4 tests
eFront: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 14.37 ▲0.08 | 1.86 ▼0.15 | 43.57 ▲0.23 |
Dashboard /wp-admin | 2,242 ▲62 | 5.69 ▲0.02 | 92.71 ▼1.17 | 44.12 ▲1.56 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.03 ▲0.05 | 44.16 ▲2.07 | 40.60 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.69 ▲0.52 | 696.38 ▲69.80 | 56.09 ▼10.93 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.33 ▲0.18 | 99.10 ▼0.77 | 45.44 ▲2.27 |
Dashboard /wp-admin/admin.php?page=efrontpro | 1,104 | 1.89 | 28.62 | 37.85 |
Setup /wp-admin/admin.php?page=efrontpro-setup | 944 | 1.74 | 27.23 | 24.54 |
Integrations /wp-admin/admin.php?page=efrontpro-integrations | 881 | 1.69 | 26.59 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/efrontpro/admin/admin.php+159
Undefined index: ef-domain
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=efrontpro-integrations
- > Notice in wp-content/plugins/efrontpro/admin/admin.php+159
Undefined index: ef-domain
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=efrontpro-integrations
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/admin.php?page=efrontpro-integrations
- > Notice in wp-content/plugins/efrontpro/utils/utils.php+97
Undefined variable: courses
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/efrontpro/efrontPRO-SDK/Source/index.php
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/UserGroup.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/CourseUser.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/ExtendedProfile.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/Group.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/Branch.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/GroupList.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/TrainingSession.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/CourseList.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/UserJob.php:15
- > PHP Fatal error
Uncaught Error: Class 'Epignosis\\eFrontPro\\Sdk\\API\\Abstraction\\AbstractAPI' not found in wp-content/plugins/efrontpro/efrontPRO-SDK/Source/Epignosis/eFrontPro/Sdk/API/Handler/User.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: online learning solution, efront, learning management system, online training system, elearning...
efrontpro/efrontpro.php Passed 13 tests
The primary PHP file in "eFront" version 1.2.2 is used by WordPress to initiate all plugin functionality
102 characters long description:
This plugin integrates eFront with Wordpress. Promote your eFront content through your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin8,866 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,000 | 7,021 | 6,520 |
PHP | 44 | 422 | 1,166 | 1,642 |
CSS | 4 | 20 | 33 | 628 |
Markdown | 2 | 12 | 0 | 76 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 1.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 2 | 7.14% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 89.87% |
▷ Protected methods | 2 | 2.53% |
▷ Private methods | 6 | 7.59% |
Functions | 40 | |
▷ Named functions | 39 | 97.50% |
▷ Anonymous functions | 1 | 2.50% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/DataTables-1.10.15/media/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
resources/DataTables-1.10.15/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
resources/DataTables-1.10.15/media/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
resources/DataTables-1.10.15/media/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
resources/DataTables-1.10.15/media/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |