Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.66MB] [CPU: ▼1.56ms] Passed 4 tests
An overview of server-side resources used by Course Session For Sensei
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 40.45 ▼1.87 |
Dashboard /wp-admin | 3.96 ▲0.65 | 55.12 ▼3.04 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 51.60 ▼1.71 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 89.44 ▲0.40 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 39.99 ▲2.24 |
All Course Sessions /wp-admin/edit.php?post_type=course-session | 3.93 | 40.55 |
Groups of Sessions /wp-admin/edit-tags.php?taxonomy=group-of-sessions&post_type=course-session | 3.90 | 43.65 |
Add New /wp-admin/post-new.php?post_type=course-session | 6.66 | 87.06 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
course_session_for_sensei_version |
wpdb_term_start_date_version |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
wpdb_term_end_date_version |
wpdb_term_course_version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Course Session For Sensei: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.37 ▼0.00 | 1.57 ▼0.14 | 38.51 ▼3.86 |
Dashboard /wp-admin | 2,246 ▲69 | 5.74 ▲0.11 | 91.68 ▼7.46 | 41.97 ▼0.68 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.23 ▲0.23 | 37.84 ▼0.59 | 34.94 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,571 ▲31 | 23.21 ▲0.10 | 674.16 ▲31.18 | 60.11 ▼0.76 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.29 ▲0.04 | 100.39 ▼6.84 | 41.67 ▼3.31 |
All Course Sessions /wp-admin/edit.php?post_type=course-session | 1,191 | 2.19 | 35.02 | 30.73 |
Groups of Sessions /wp-admin/edit-tags.php?taxonomy=group-of-sessions&post_type=course-session | 1,431 | 2.11 | 34.86 | 32.05 |
Add New /wp-admin/post-new.php?post_type=course-session | 6,215 | 19.17 | 868.90 | 36.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- wpdb_term_course_version
- widget_recent-comments
- theysaidso_admin_options
- wpdb_term_end_date_version
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- wpdb_term_start_date_version
- course_session_for_sensei_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sensei_header() in wp-content/plugins/course-session-for-sensei/templates/archive-course-session.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_sensei_header() in wp-content/plugins/course-session-for-sensei/templates/single-course-session.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: date, course, visibility, sensei, session
course-session-for-sensei/course-session-for-sensei.php Passed 13 tests
The main file in "Course Session For Sensei" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
This is your starter template for your next WordPress plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,807 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 1,496 | 2,638 | 3,242 |
PO File | 1 | 74 | 93 | 203 |
JavaScript | 9 | 82 | 155 | 197 |
LESS | 2 | 25 | 27 | 147 |
JSON | 1 | 0 | 0 | 14 |
CSS | 4 | 1 | 101 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.94 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 9 | 5.88% |
▷ Public methods | 131 | 85.62% |
▷ Protected methods | 15 | 9.80% |
▷ Private methods | 7 | 4.58% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/css-screenshot-2.png | 46.43KB | 46.44KB | 0.00% |
assets/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |