Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲14.99ms] Passed 4 tests
A check of server-side resources used by WP OER
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 55.07 ▲12.41 |
Dashboard /wp-admin | 3.68 ▲0.38 | 100.97 ▲54.86 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 62.19 ▲14.20 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 109.85 ▲14.11 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 51.08 ▲19.22 |
Settings /wp-admin/edit.php?post_type=resource&page=oer_settings | 3.67 | 98.10 |
Subject Areas /wp-admin/edit-tags.php?taxonomy=resource-subject-area&post_type=resource | 3.52 | 45.39 |
All Resources /wp-admin/edit.php?post_type=resource | 3.62 | 54.33 |
Grade Levels /wp-admin/edit-tags.php?taxonomy=resource-grade-level&post_type=resource | 3.52 | 47.26 |
Import /wp-admin/edit.php?post_type=resource&page=oer_import | 3.57 | 53.10 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=resource | 3.52 | 47.18 |
Add Resource /wp-admin/post-new.php?post_type=resource | 6.68 | 112.85 |
Server storage [IO: ▲26.67MB] [DB: ▲0.02MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The filesystem usage should be lower than 25MB (currently using 26.67MB)
Filesystem: 624 new files
Database: 4 new tables, 13 new options
New tables |
---|
wp_category_page |
wp_oer_standard_notation |
wp_oer_sub_standards |
wp_oer_core_standards |
New WordPress options |
---|
setup_notify |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
oer_use_bootstrap |
oer_rewrite_rules |
widget_oer_subject_area_widget |
oer_setup |
theysaidso_admin_options |
oer_metadata_firstload |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP OER
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,115 ▲380 | 16.08 ▲1.70 | 17.76 ▲15.92 | 42.45 ▼4.21 |
Dashboard /wp-admin | 2,338 ▲183 | 5.98 ▲0.29 | 99.04 ▼4.84 | 41.74 ▼0.28 |
Posts /wp-admin/edit.php | 2,236 ▲147 | 2.99 ▲0.98 | 48.37 ▲3.41 | 48.42 ▲11.03 |
Add New Post /wp-admin/post-new.php | 6,823 ▲5,304 | 28.69 ▲5.56 | 894.93 ▲281.11 | 37.94 ▼9.99 |
Media Library /wp-admin/upload.php | 1,525 ▲140 | 5.13 ▲0.92 | 97.41 ▼0.48 | 46.01 ▲1.50 |
Settings /wp-admin/edit.php?post_type=resource&page=oer_settings | 1,899 | 7.89 | 148.00 | 73.28 |
Subject Areas /wp-admin/edit-tags.php?taxonomy=resource-subject-area&post_type=resource | 1,433 | 2.54 | 40.10 | 29.30 |
All Resources /wp-admin/edit.php?post_type=resource | 1,415 | 4.08 | 56.34 | 24.86 |
Grade Levels /wp-admin/edit-tags.php?taxonomy=resource-grade-level&post_type=resource | 1,402 | 2.83 | 49.00 | 32.40 |
Import /wp-admin/edit.php?post_type=resource&page=oer_import | 1,391 | 4.12 | 54.16 | 30.95 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=resource | 1,447 | 2.68 | 40.84 | 29.51 |
Add Resource /wp-admin/post-new.php?post_type=resource | 3,117 | 21.10 | 954.24 | 84.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_oer_sub_standards
- wp_oer_standard_notation
- wp_oer_core_standards
- wp_category_page
- This plugin does not fully uninstall, leaving 11 options in the database
- oer_use_fontawesome
- widget_recent-comments
- oer_rewrite_rules
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_oer_subject_area_widget
- db_upgraded
- oer_use_bootstrap
- 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
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-oer/oer_template/avada-search.php
- > /wp-content/plugins/wp-oer/oer_template/search-layout.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-oer/blocks/resource-block/init.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-oer/oer_template/standards.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-oer/oer_template/search.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-oer/blocks/subjects-index-block/init.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function oer_allowed_html() in wp-content/plugins/wp-oer/oer_template/single-resource-video.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-oer/oer_template/modals/standard_modal.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-oer/blocks/subject-resources-block-v2/init.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function oer_allowed_html() in wp-content/plugins/wp-oer/oer_template/single-resource-website.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-oer/oer_template/resource-subject-area.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-oer/oer_template/search-content.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: teaching, learning, open educational resources, oer, education
wp-oer/open-educational-resources.php 92% from 13 tests
The main file in "WP OER" v. 0.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-oer.php" instead of "open-educational-resources.php")
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 plugin162,301 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 3,826 | 1,831 | 76,885 |
XML | 3 | 3 | 18 | 52,495 |
PHP | 54 | 2,117 | 1,712 | 13,869 |
SVG | 12 | 0 | 0 | 9,702 |
CSS | 18 | 1,862 | 175 | 8,040 |
PO File | 2 | 352 | 231 | 734 |
HTML | 1 | 43 | 16 | 300 |
JSON | 6 | 0 | 0 | 236 |
Python | 1 | 21 | 3 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 34.20 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 46 | 88.46% |
▷ Protected methods | 6 | 11.54% |
▷ Private methods | 0 | 0.00% |
Functions | 294 | |
▷ Named functions | 287 | 97.62% |
▷ Anonymous functions | 7 | 2.38% |
Constants | 64 | |
▷ Global constants | 64 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
148 compressed PNG files occupy 0.94MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pdfjs/web/images/toolbarButton-download.png | 0.25KB | 0.39KB | 0.00% |
images/plus.png | 0.51KB | 0.49KB | ▼ 4.59% |
images/plugicon.png | 0.63KB | 0.61KB | ▼ 3.27% |
pdfjs/web/images/secondaryToolbarButton-firstPage.png | 0.17KB | 0.27KB | 0.00% |
pdfjs/web/images/toolbarButton-search@2x.png | 0.64KB | 1.08KB | 0.00% |