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.18MB] [CPU: ▲0.78ms] Passed 4 tests
Server-side resources used by Experience API for MasterStudy by GrassBlade
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.90 ▲5.86 |
Dashboard /wp-admin | 3.49 ▲0.18 | 53.15 ▲3.29 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.37 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 96.52 ▲0.62 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.34 ▼1.21 |
MasterStudy LMS /wp-admin/admin.php?page=grassblade-masterstudy-lms | 3.37 | 32.62 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.37 | 36.52 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Experience API for MasterStudy by GrassBlade
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.25 ▼0.12 | 1.86 ▲0.17 | 42.38 ▼2.54 |
Dashboard /wp-admin | 2,216 ▲39 | 5.74 ▲0.09 | 90.47 ▲2.14 | 92.74 ▲49.93 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 1.97 ▼0.02 | 40.60 ▲0.90 | 34.35 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.81 ▲0.38 | 626.36 ▼21.58 | 61.88 ▲9.52 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.17 ▲0.01 | 100.25 ▼0.70 | 78.64 ▲33.45 |
MasterStudy LMS /wp-admin/admin.php?page=grassblade-masterstudy-lms | 908 | 1.99 | 22.86 | 32.23 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 921 | 2.00 | 23.94 | 30.39 |
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 were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× 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-masterstudy/functions.php on line 20
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/grassblade-xapi-masterstudy/functions.php on line 1155
- > 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-masterstudy/functions.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grassblade-xapi-masterstudy/functions.php:25
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/grassblade-xapi-masterstudy/functions.php on line 20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Donate link: Please fix this invalid URI: ""
grassblade-xapi-masterstudy/functions.php 92% from 13 tests
"Experience API for MasterStudy by GrassBlade" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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-masterstudy.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected914 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 248 | 57 | 914 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 93.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 5.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 39 | |
▷ Static methods | 9 | 23.08% |
▷ Public methods | 39 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
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/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/gb_logo.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/no.png | 1.01KB | 0.62KB | ▼ 39.05% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/check.png | 0.98KB | 0.47KB | ▼ 52.44% |