Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼4.32ms] 75% from 4 tests
Analyzing server-side resources used by Experience API for LearnPress by GrassBlade
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 5,053.38ms on /wp-admin/admin.php?page=grassblade-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 54.22 ▲10.67 |
Dashboard /wp-admin | 3.64 ▲0.33 | 50.46 ▼11.35 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 56.84 ▲2.20 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 92.55 ▼11.63 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 39.64 ▲3.51 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 3.84 | 5,053.38 |
LearnPress LMS /wp-admin/admin.php?page=grassblade-learnpress | 3.54 | 37.33 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.54 | 33.88 |
Server storage [IO: ▲0.10MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
grassblade_addons |
widget_recent-posts |
grassblade_free_addons |
Browser metrics Passed 4 tests
An overview of browser requirements for Experience API for LearnPress by GrassBlade
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.31 ▼0.35 | 2.11 ▲0.40 | 42.49 ▼0.29 |
Dashboard /wp-admin | 2,232 ▲61 | 5.60 ▲0.02 | 92.02 ▼10.91 | 70.39 ▲23.86 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.06 ▲0.05 | 38.43 ▲2.62 | 34.74 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.13 ▼0.60 | 687.80 ▲37.60 | 50.85 ▲2.12 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.26 ▼0.04 | 101.13 ▼1.19 | 72.73 ▲28.81 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 2,832 | 2.19 | 33.34 | 77.62 |
LearnPress LMS /wp-admin/admin.php?page=grassblade-learnpress | 912 | 2.13 | 24.64 | 39.70 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 922 | 2.14 | 26.61 | 34.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- grassblade_free_addons
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- grassblade_addons
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=grassblade-lrs-settings
- > Notice in wp-content/plugins/grassblade-xapi-learnpress/functions.php+124
Undefined variable: xapi_td
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/grassblade-xapi-learnpress/functions.php on line 17
- > 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-learnpress/functions.php on line 17
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/grassblade-xapi-learnpress/functions.php on line 17
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
grassblade-xapi-learnpress/functions.php 92% from 13 tests
"Experience API for LearnPress by GrassBlade" version 4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("grassblade-xapi-learnpress.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,317 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 294 | 100 | 1,317 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 139.00 |
▷ Minimum class complexity | 116.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 6.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 51 | |
▷ Static methods | 5 | 9.80% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/gb_logo.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |