Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼11.09ms] Passed 4 tests
This is a short check of server-side resources used by Components for Learning
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 41.07 ▲0.39 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.79 ▼6.21 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.62 ▲2.08 |
Add New Post /wp-admin/post-new.php | 4.96 ▼0.93 | 59.56 ▼40.60 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.89 ▲5.61 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Components for Learning
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 13.19 ▼1.10 | 5.66 ▲3.69 | 38.26 ▼6.06 |
Dashboard /wp-admin | 2,221 ▲21 | 4.85 ▼0.17 | 105.02 ▼11.82 | 39.32 ▼4.96 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 39.75 ▲2.28 | 34.39 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6,450 ▲4,905 | 29.04 ▲5.87 | 960.22 ▲309.39 | 38.62 ▼18.24 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.25 ▲0.03 | 98.64 ▼11.81 | 43.61 ▲0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/components-for-learning/components-for-learning.php:30
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gutenberg, blocks, learning, lms
components-for-learning/components-for-learning.php Passed 13 tests
The main file in "Components for Learning" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
A collection of semantic visual designed for learning contents, aimed to reduce the learners’ cognitive load.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,542 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 735 | 1,410 | 4,073 |
CSS | 30 | 46 | 120 | 865 |
JSON | 15 | 0 | 0 | 501 |
PHP | 31 | 86 | 240 | 103 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected