Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.50ms] Passed 4 tests
A check of server-side resources used by OER Curriculum
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.51 ▲1.56 |
Dashboard /wp-admin | 3.31 ▲0.00 | 74.62 ▲24.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.50 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.29 ▼1.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.46 ▲0.43 |
Server storage [IO: ▲6.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
OER Curriculum: 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,789 ▲28 | 14.34 ▲0.15 | 1.76 ▼0.13 | 42.04 ▼2.62 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.05 | 83.11 ▼6.83 | 40.27 ▲1.36 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.09 | 39.02 ▲0.62 | 35.18 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 22.81 ▼0.31 | 671.40 ▼17.85 | 57.94 ▼24.38 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.18 ▼0.03 | 95.70 ▼19.19 | 43.44 ▼5.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/oer-curriculum/includes/popups/delete-section.php
- > /wp-content/plugins/oer-curriculum/includes/popups/create-module.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oer-curriculum/templates/module.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/oer-curriculum/includes/oer-curriculum-resource-selector.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/oer-curriculum/includes/popups/standard-selection.php:19
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/oer-curriculum/includes/blocks/curriculum-featured-block/init.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oer-curriculum/includes/blocks/curriculum-thumbnail-block/init.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/oer-curriculum/includes/popups/delete-author.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/oer-curriculum/templates/single-oer-curriculum.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/oer-curriculum/includes/popups/delete-module.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oer-curriculum/templates/primary-source.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/oer-curriculum/templates/oer-curriculum-tag.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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:
- Screenshots: These screenshots do not have images: #2 (Additional metadata in the Add New Curriculum post), #3 (Tag settings page for managing curriculum tags), #4 (Subject Areas settings page for managing curriculum subjects)
oer-curriculum/oer-curriculum.php Passed 13 tests
The main PHP script in "OER Curriculum" version 0.5.5 is automatically included on every request by WordPress
138 characters long description:
Manage and display collections of Open Educational Resources in lesson plans or curriculums with alignment to Common Core State Standards.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin38,977 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 2,813 | 114 | 14,320 |
SVG | 4 | 0 | 0 | 9,840 |
PHP | 24 | 641 | 724 | 7,836 |
JavaScript | 15 | 1,230 | 944 | 6,133 |
PO File | 2 | 208 | 37 | 448 |
JSON | 5 | 1 | 0 | 377 |
YAML | 1 | 1 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
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 | 122 | |
▷ Named functions | 116 | 95.08% |
▷ Anonymous functions | 6 | 4.92% |
Constants | 14 | |
▷ Global constants | 14 | 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
5 PNG files occupy 0.28MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/oer-curriculum-person-placeholder.png | 6.48KB | 3.38KB | ▼ 47.75% |
includes/blocks/curriculum-featured-block/images/blockpreview.png | 276.75KB | 104.12KB | ▼ 62.38% |
includes/blocks/curriculum-featured-block/images/bxnext.png | 1.14KB | 0.15KB | ▼ 86.94% |
images/oercurr-settings-logo.png | 2.41KB | 1.46KB | ▼ 39.26% |
includes/blocks/curriculum-featured-block/images/bxprev.png | 1.14KB | 0.16KB | ▼ 86.29% |