Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.76ms] Passed 4 tests
Analyzing server-side resources used by Experience API for TutorLMS by GrassBlade
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.85 ▼4.81 |
Dashboard /wp-admin | 3.46 ▲0.16 | 50.63 ▼0.66 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.12 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 95.41 ▼6.22 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.94 ▲2.44 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.37 | 33.31 |
Tutor LMS /wp-admin/admin.php?page=grassblade-xapi-tutorlms | 3.37 | 31.78 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Experience API for TutorLMS by GrassBlade
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲104 | 13.22 ▼1.36 | 1.80 ▼0.30 | 41.79 ▼9.64 |
Dashboard /wp-admin | 2,245 ▲54 | 4.87 ▲0.02 | 103.01 ▼0.46 | 81.73 ▲37.53 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.03 ▼0.02 | 39.16 ▲0.94 | 35.03 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 18.35 ▼4.77 | 753.03 ▲141.35 | 59.95 ▼6.06 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.24 ▼0.07 | 96.48 ▼0.37 | 69.07 ▲26.54 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 915 | 2.01 | 26.32 | 33.02 |
Tutor LMS /wp-admin/admin.php?page=grassblade-xapi-tutorlms | 892 | 2.05 | 24.10 | 28.85 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/grassblade-xapi-tutorlms/functions.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grassblade-xapi-tutorlms/functions.php:35
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/grassblade-xapi-tutorlms/functions.php on line 31
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/grassblade-xapi-tutorlms/functions.php on line 31
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
grassblade-xapi-tutorlms/functions.php 92% from 13 tests
Analyzing the main PHP file in "Experience API for TutorLMS by GrassBlade" version 1.3
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("grassblade-xapi-tutorlms.php" instead of "functions.php")
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin936 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 212 | 64 | 936 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/check.png | 0.98KB | 0.47KB | ▼ 52.44% |
img/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/no.png | 1.01KB | 0.62KB | ▼ 39.05% |
img/gb_logo.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |