Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/om-addon-for-wp-courseware/wp-courseware-optimizemember.php+21
Undefined index: WS_PLUGIN__
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.98ms] Passed 4 tests
A check of server-side resources used by WP Courseware for OptimizeMember
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.26 ▼1.79 |
Dashboard /wp-admin | 3.37 ▲0.03 | 45.67 ▼21.67 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.73 ▼5.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.91 ▼10.93 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.41 ▼0.51 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Courseware for OptimizeMember
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.45 ▼0.21 | 1.80 ▲0.18 | 41.07 ▲0.24 |
Dashboard /wp-admin | 2,200 ▲22 | 5.58 ▼0.08 | 85.77 ▼9.31 | 40.83 ▼2.70 |
Posts /wp-admin/edit.php | 2,105 ▲26 | 1.98 ▲0.00 | 39.68 ▼2.41 | 37.57 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.27 ▼0.25 | 680.55 ▲10.81 | 52.84 ▲0.16 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.23 ▼0.06 | 97.04 ▼9.21 | 45.64 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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 everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/om-addon-for-wp-courseware/wp-courseware-optimizemember.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: learning management system, selling online courses
om-addon-for-wp-courseware/wp-courseware-optimizemember.php 92% from 13 tests
The primary PHP file in "WP Courseware for OptimizeMember" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("om-addon-for-wp-courseware.php" instead of "wp-courseware-optimizemember.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin360 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 178 | 208 | 360 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 64.00% |
▷ Protected methods | 7 | 28.00% |
▷ Private methods | 2 | 8.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
No PNG images were found in this plugin