Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.94ms] Passed 4 tests
A check of server-side resources used by Pressbooks LTI Tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.51 ▲3.66 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.78 ▼13.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.10 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.93 ▼6.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.22 ▼2.96 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Pressbooks LTI Tool: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.17 | 1.75 ▲0.01 | 43.50 ▲2.52 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.06 | 96.36 ▼2.45 | 39.44 ▼3.64 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 32.94 ▼4.92 | 32.77 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.23 ▲0.10 | 672.82 ▼24.11 | 52.30 ▼3.65 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.02 | 99.83 ▼10.59 | 43.60 ▼2.62 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/lti-tool/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/pressbooks-lti-tool/PressbooksTool.php on line 14
- > PHP Warning
require_once(wp-content/plugins/lti-tool/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pressbooks-lti-tool/PressbooksTool.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: ims, celtic, lti, learning tools interoperability, pressbooks...
pressbooks-lti-tool/pressbooks-lti-tool.php Passed 13 tests
"Pressbooks LTI Tool" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
138 characters long description:
This plugin allows Pressbooks to be integrated with on-line courses using the 1EdTech Learning Tools Interoperability (LTI) specification.
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
There were no executable files found in this plugin715 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 73 | 133 | 715 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 2 | 66.67% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/book.png | 0.46KB | 0.41KB | ▼ 12.18% |