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.01MB] [CPU: ▼9.39ms] Passed 4 tests
A check of server-side resources used by LearnPress Export Import - WordPress extension for LearnPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.46 ▼2.95 |
Dashboard /wp-admin | 3.31 ▼0.04 | 53.38 ▼6.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.85 ▼5.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.06 ▼23.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.15 ▲2.15 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for LearnPress Export Import - WordPress extension for LearnPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.06 | 1.50 ▼0.14 | 38.63 ▼2.25 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.12 | 81.91 ▼2.22 | 38.62 ▼4.55 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.01 | 36.26 ▲0.87 | 31.21 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▲0.03 | 649.72 ▼18.97 | 63.73 ▲11.32 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.18 ▼0.01 | 99.46 ▲7.61 | 44.48 ▲2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LP_Request' not found in wp-content/plugins/learnpress-import-export/inc/admin/views/learnpress/export/step-2.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/learnpress-import-export/inc/admin/providers/learnpress/xml/items/export-quiz.php:6
- > PHP Fatal error
Uncaught Error: Class 'LP_Request' not found in wp-content/plugins/learnpress-import-export/inc/admin/views/learnpress/import-user/form-import.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/learnpress-import-export/inc/admin/views/learnpress/import-user/step-3.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/learnpress-import-export/inc/admin/views/settings-page.php:11
- > PHP Fatal error
Uncaught Error: Class 'LP_Export_LearnPress_Provider' not found in wp-content/plugins/learnpress-import-export/inc/admin/views/learnpress/export/step-1.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function learn_press_get_request() in wp-content/plugins/learnpress-import-export/inc/admin/views/export.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/learnpress-import-export/inc/admin/providers/learnpress/xml/items/export-question.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/learnpress-import-export/inc/admin/providers/learnpress/xml/items/export-course.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/learnpress-import-export/inc/admin/providers/learnpress/xml/lp-export.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add an image for screenshot #1 (LearnPress Export Import screenshot.)
- Donate link: Invalid URI ("")
learnpress-import-export/learnpress-import-export.php Passed 13 tests
The main PHP file in "LearnPress Export Import - WordPress extension for LearnPress" ver. 4.0.3 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Export and Import your courses with all lesson and quiz in easiest way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,958 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 573 | 970 | 3,406 |
JavaScript | 3 | 29 | 4 | 416 |
CSS | 1 | 23 | 1 | 136 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 9 | 9.28% |
▷ Public methods | 85 | 87.63% |
▷ Protected methods | 6 | 6.19% |
▷ Private methods | 6 | 6.19% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected