Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.03ms] Passed 4 tests
An overview of server-side resources used by myCred - LifterLMS Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.90 ▼4.37 |
Dashboard /wp-admin | 3.30 ▼0.04 | 45.96 ▼18.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.45 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.50 ▼15.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.32 ▼0.32 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for myCred - LifterLMS Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.62 ▲0.38 | 1.52 ▼0.18 | 37.31 ▼4.01 |
Dashboard /wp-admin | 2,198 ▲17 | 5.60 ▼0.06 | 93.73 ▼19.27 | 42.07 ▼1.34 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.08 | 40.44 ▼1.67 | 35.21 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.59 ▲0.73 | 628.22 ▲7.82 | 47.21 ▼18.68 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▼0.06 | 97.91 ▲0.51 | 40.83 ▼0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- 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)
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-lifterlms-integration/mycred-lifterlms.php:295
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #3, #4, #5, #6, #7, #8, #9 in mycred-lifterlms-integration/assets to your readme.txt
mycred-lifterlms-integration/mycred-lifterlms.php 85% from 13 tests
The primary PHP file in "myCred - LifterLMS Integration" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.8")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mycred-lifterlms-integration.php" instead of "mycred-lifterlms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,055 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 460 | 505 | 1,941 |
CSS | 2 | 5 | 0 | 82 |
JavaScript | 2 | 12 | 1 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 102 | |
▷ Static methods | 2 | 1.96% |
▷ Public methods | 86 | 84.31% |
▷ Protected methods | 13 | 12.75% |
▷ Private methods | 3 | 2.94% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG files were detected