Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.99ms] Passed 4 tests
Server-side resources used by LearnPress - Fill in Blank Question
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 33.48 ▼1.36 |
Dashboard /wp-admin | 3.07 ▲0.01 | 54.82 ▲6.26 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.86 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 87.13 ▼577.08 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 45.43 ▲12.91 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for LearnPress - Fill in Blank Question
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲136 | 15.85 ▲0.28 | 10.45 ▲0.47 | 51.80 ▲3.66 |
Dashboard /wp-admin | 2,993 ▲59 | 6.00 ▼0.01 | 182.13 ▲34.37 | 123.69 ▲16.94 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 2.72 ▼0.12 | 72.84 ▼1.76 | 100.84 ▲12.53 |
Add New Post /wp-admin/post-new.php | 1,633 ▼50 | 21.04 ▲2.21 | 290.08 ▼104.68 | 105.31 ▼3.27 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.02 ▲0.03 | 168.76 ▲11.12 | 111.24 ▼7.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/learnpress-fill-in-blank/inc/admin/views/tool-upgrade.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function learn_press_fib_admin_view() in wp-content/plugins/learnpress-fill-in-blank/inc/admin/views/answer-question-editor.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function learn_press_fib_admin_view() in wp-content/plugins/learnpress-fill-in-blank/inc/admin/views/answer-quiz-editor.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/learnpress-fill-in-blank/inc/admin/views/answer-editor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/learnpress-fill-in-blank/inc/admin/class-upgrade-database.php:11
- > 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 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
learnpress-fill-in-blank/learnpress-fill-in-blank.php Passed 13 tests
The main file in "LearnPress - Fill in Blank Question" v. 3.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
104 characters long description:
Supports type of question Fill In Blank lets user fill out the text into one ( or more than one ) space.
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
There were no executable files found in this plugin1,929 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 259 | 468 | 1,350 |
CSS | 3 | 18 | 0 | 251 |
Sass | 2 | 8 | 0 | 249 |
JavaScript | 2 | 11 | 1 | 79 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 6 | 15.00% |
▷ Private methods | 1 | 2.50% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin