Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.18ms] Passed 4 tests
Server-side resources used by Paid Memberships Pro Addon for WP Courseware
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.01 ▼4.46 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.68 ▼2.74 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.89 ▲2.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.83 ▲5.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.98 ▲4.21 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Paid Memberships Pro Addon for WP Courseware: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.56 ▼0.85 | 1.69 ▼0.19 | 43.22 ▼5.88 |
Dashboard /wp-admin | 2,209 ▲21 | 5.76 ▲0.86 | 96.72 ▼12.28 | 39.44 ▼0.71 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.04 | 39.71 ▲0.87 | 37.09 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 18.35 ▼4.85 | 604.52 ▼75.30 | 56.45 ▼1.23 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.02 | 97.71 ▲0.20 | 43.19 ▼0.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/paid-memberships-pro-for-wp-courseware/wp-courseware-pmpro.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
2 plugin tags: selling online courses, learning management system
paid-memberships-pro-for-wp-courseware/wp-courseware-pmpro.php 92% from 13 tests
The primary PHP file in "Paid Memberships Pro Addon for WP Courseware" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paid-memberships-pro-for-wp-courseware.php" instead of "wp-courseware-pmpro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin375 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 216 | 375 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.27 |
▷ 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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 65.38% |
▷ Protected methods | 7 | 26.92% |
▷ Private methods | 2 | 7.69% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin