Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/oppia-integration/includes/class.content-fetcher.php+6
Constant OPPIA_INT_PLUGIN_URL already defined
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.96ms] Passed 4 tests
Analyzing server-side resources used by Oppia integration plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 11.19 ▼33.09 |
Dashboard /wp-admin | 2.10 ▼1.20 | 8.58 ▼47.69 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 8.45 ▼45.68 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.87 ▼97.39 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 8.24 ▼29.25 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Oppia integration plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.36 ▼0.04 | 1.72 ▼0.52 | 44.33 ▲1.75 |
Dashboard /wp-admin | 2,213 ▲33 | 5.56 ▼0.09 | 86.08 ▼16.76 | 40.04 ▼5.02 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▲0.01 | 32.25 ▼2.00 | 37.31 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 22.93 ▼0.07 | 703.70 ▲29.84 | 55.84 ▲1.63 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.26 ▲0.07 | 96.95 ▼6.24 | 43.29 ▲0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/oppia-integration/includes/class.content-fetcher.php+6
Constant OPPIA_INT_PLUGIN_URL already defined
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oppia-integration/oppia-integration.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/oppia-integration/includes/class.content-fetcher.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: import, widget, feeds
oppia-integration/oppia-integration.php Passed 13 tests
"Oppia integration plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Fetches and embeds Courses, Events, Webinars, etc. from oppia.fi feed
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
No dangerous file extensions were detected718 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 35 | 574 |
CSS | 1 | 13 | 0 | 105 |
JavaScript | 1 | 9 | 0 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 3 | 30.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/chevron-right.png | 2.36KB | 2.28KB | ▼ 3.35% |