Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/buddypress-courseware/notifications/notifications.class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; BPSP_Notifications has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.61ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress Courseware
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.21 ▲1.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.04 ▲0.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.93 ▲4.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.04 ▼0.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▲0.72 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 121 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Courseware
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.13 | 4.72 ▲3.04 | 45.01 ▲0.64 |
Dashboard /wp-admin | 2,203 ▲14 | 4.87 ▼0.07 | 97.73 ▼8.42 | 40.17 ▼6.72 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▲0.02 | 36.80 ▼0.19 | 37.54 ▲5.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 17.98 ▲0.46 | 644.92 ▼45.06 | 50.36 ▼0.52 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.02 | 99.06 ▲3.80 | 40.69 ▼4.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/buddypress-courseware/groups/templates/list_schedules.php
- > /wp-content/plugins/buddypress-courseware/groups/templates/_bibs.php
- > /wp-content/plugins/buddypress-courseware/groups/templates/_nav.php
- 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: lecture_edit_uri in wp-content/plugins/buddypress-courseware/groups/templates/edit_lecture.php on line 1
- > PHP Notice
Undefined variable: bibs in wp-content/plugins/buddypress-courseware/groups/templates/_bibs.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function setup_postdata() in wp-content/plugins/buddypress-courseware/groups/templates/single_assignment.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function setup_postdata() in wp-content/plugins/buddypress-courseware/groups/templates/single_lecture.php:1
- > PHP Notice
Undefined variable: bibs_form_uri in wp-content/plugins/buddypress-courseware/groups/templates/edit_bibliography.php on line 2
- > PHP Notice
Undefined variable: course in wp-content/plugins/buddypress-courseware/groups/templates/edit_course.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-courseware/groups/templates/new_schedule.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-courseware/wordpress/templates/admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-courseware/groups/templates/new_lecture.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-courseware/groups/templates/_no_course_group_header.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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 to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: Invalid plugin version format
- Tested up to: Invalid plugin version format
buddypress-courseware/courseware.php 85% from 13 tests
The main file in "BuddyPress Courseware" v. 0.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WordPress 3.2, BuddyPress 1.5")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-courseware.php" instead of "courseware.php")
Code Analysis 95% from 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
Good job! No executable or dangerous file extensions detected21,584 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 913 | 4,065 | 12,286 |
JavaScript | 24 | 313 | 471 | 4,073 |
PO File | 4 | 1,736 | 3,140 | 3,718 |
CSS | 8 | 300 | 147 | 1,507 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,580)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 145)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 119.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,580.00 |
Average method complexity | 8.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 145.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 412 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 412 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/css/jquery-ui-custom/theme/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
static/images/blank_book.png | 2.54KB | 1.83KB | ▼ 27.90% |
static/css/jquery-ui-custom/theme/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
static/images/calendar_link.png | 0.78KB | 0.83KB | 0.00% |
static/css/jquery-ui-custom/theme/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |