Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.88ms] Passed 4 tests
Analyzing server-side resources used by WP Course Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.75 ▼3.22 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.47 ▲0.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.82 ▼4.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.74 ▲3.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.64 ▼0.12 |
Edit Courses /wp-admin/admin.php?page=WPCM_edit_courses | 3.18 | 27.78 |
Edit Lecturers /wp-admin/admin.php?page=WPCM_edit_lecturers | 3.18 | 28.29 |
Edit Schedule /wp-admin/admin.php?page=WPCM_edit_schedule | 3.18 | 27.84 |
WP Course Manager /wp-admin/admin.php?page=WPCM_top_options_page | 3.22 | 27.82 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_wpcm_courses |
wp_wpcm_lecturers |
wp_wpcm_schedule |
wp_wpcm_course_holders |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
wpcm_date_display_setting |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Course Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲190 | 13.61 ▼0.70 | 6.27 ▲3.82 | 44.66 ▼1.55 |
Dashboard /wp-admin | 2,246 ▲58 | 5.79 ▼0.11 | 99.11 ▼9.97 | 38.31 ▼6.84 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.05 ▲0.00 | 42.92 ▼2.25 | 36.36 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 23.38 ▲0.13 | 635.34 ▲9.69 | 57.02 ▼4.50 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.23 ▲0.03 | 95.91 ▲0.47 | 41.92 ▲1.14 |
Edit Courses /wp-admin/admin.php?page=WPCM_edit_courses | 793 | 2.03 | 24.29 | 28.22 |
Edit Lecturers /wp-admin/admin.php?page=WPCM_edit_lecturers | 792 | 2.06 | 23.95 | 27.43 |
Edit Schedule /wp-admin/admin.php?page=WPCM_edit_schedule | 791 | 2.03 | 24.20 | 25.32 |
WP Course Manager /wp-admin/admin.php?page=WPCM_top_options_page | 989 | 2.02 | 22.34 | 24.67 |
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: 7 options
- can_compress_scripts
- widget_recent-posts
- wpcm_date_display_setting
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WPCM_edit_schedule
- > Notice in wp-content/plugins/wp-course-manager/wpcm_edit_schedule.php+12
Undefined index: action
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WPCM_edit_schedule
- > Notice in wp-content/plugins/wp-course-manager/wpcm_edit_schedule.php+13
Undefined index: id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WPCM_edit_schedule
- > Notice in wp-content/plugins/wp-course-manager/wpcm_edit_schedule.php+14
Undefined index: save
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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-course-manager/wp-course-manager.php:45
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-course-manager/wpcm_db_access.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (The plugin options page. This is where you tell the plugin what pages you have put the shortcodes in.), #2 (Edit lecturer information.), #3 (Manage the schedule. A new scheduled event has just been added.), #4 (The schedule list on the page with the shortcode for listing the schedule. This is how the visitor to the site sees it.), #5 (The schedule list with detailed information about one scheduled event.), #6 (Information about a lecturer, on the page where the shortcode for showing lecturers is put.), #7 (Information about a course, on the page where the shortcode for showing courses is put.)
wp-course-manager/wp-course-manager.php 92% from 13 tests
The main file in "WP Course Manager" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,139 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 380 | 153 | 1,029 |
JavaScript | 2 | 150 | 191 | 732 |
PO File | 1 | 99 | 111 | 245 |
CSS | 1 | 29 | 2 | 130 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 1.02MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
3.png | 63.51KB | 21.29KB | ▼ 66.48% |
4.png | 25.32KB | 9.13KB | ▼ 63.95% |
screenshot-5.png | 48.84KB | 19.34KB | ▼ 60.41% |
6.png | 120.73KB | 41.27KB | ▼ 65.82% |
screenshot-6.png | 120.73KB | 41.27KB | ▼ 65.82% |