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.38MB] [CPU: ▲0.56ms] Passed 4 tests
This is a short check of server-side resources used by BU Learning Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 44.15 ▲4.91 |
Dashboard /wp-admin | 3.67 ▲0.36 | 44.83 ▼0.56 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 47.53 ▲1.39 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 94.29 ▼3.52 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 39.26 ▲6.48 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_bu_pages |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
bulb_active |
Browser metrics Passed 4 tests
A check of browser resources used by BU Learning Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 14.61 ▲0.16 | 27.49 ▲25.86 | 44.00 ▼1.86 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▲0.90 | 105.60 ▲3.51 | 38.05 ▼5.43 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.02 | 38.71 ▼2.73 | 34.56 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,516 ▼17 | 23.41 ▼0.13 | 673.36 ▲24.25 | 38.93 ▼19.72 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.10 ▼0.30 | 94.02 ▼18.60 | 42.21 ▼5.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_bu_pages
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Even though everything seems fine, this is not 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
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\avigation\\add_filter() in wp-content/plugins/bu-learning-blocks/inc/bu-navigation-core-widget/src/data-active-section.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/blocks/bulb-fitb/index.php:111
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/bu-learning-blocks/phpunit/bootstrap.php on line 25
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/bu-learning-blocks/phpunit/bootstrap.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/enqueue-assets.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/blocks/bulb-tf/index.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/blocks/bulb-cn/index.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\avigation\\add_filter() in wp-content/plugins/bu-learning-blocks/inc/bu-navigation-core-widget/src/filters.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/learning-module-cpt.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\\LearningBlocks\\add_action() in wp-content/plugins/bu-learning-blocks/src/blocks/bulb-mat/index.php:126
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
6 plugin tags: online courses, bu, education, learning, teaching...
bu-learning-blocks/bu-learning-blocks.php Passed 13 tests
The primary PHP file in "BU Learning Blocks" version 1.1.4 is used by WordPress to initiate all plugin functionality
136 characters long description:
BU Learning Blocks — is a collection of tools to enable the easy creation of academic lessons with embedded self-assessment questions.
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 plugin48,517 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 44,701 |
PHP | 28 | 453 | 1,055 | 2,042 |
JavaScript | 26 | 108 | 66 | 1,151 |
Markdown | 3 | 78 | 0 | 408 |
Sass | 3 | 20 | 6 | 101 |
YAML | 2 | 10 | 0 | 60 |
XML | 2 | 5 | 3 | 48 |
CSS | 2 | 6 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 54.55% |
▷ Protected methods | 5 | 45.45% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 58 | 89.23% |
▷ Anonymous functions | 7 | 10.77% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin