Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.19ms] 75% from 4 tests
This is a short check of server-side resources used by Experience API for WP Courseware by Grassblade
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 3,705.03ms on /wp-admin/admin.php?page=grassblade-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 44.53 ▲6.00 |
Dashboard /wp-admin | 3.68 ▲0.38 | 48.99 ▼4.08 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 49.93 ▲4.63 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 84.95 ▼9.11 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 38.04 ▲3.82 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.57 | 35.09 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 3.79 | 3,705.03 |
WP Courseware LMS /wp-admin/admin.php?page=grassblade-wp-courseware | 3.60 | 33.72 |
Server storage [IO: ▲0.12MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
grassblade_addons |
grassblade_free_addons |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Experience API for WP Courseware by Grassblade
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.20 ▼1.20 | 1.79 ▼0.08 | 44.07 ▲0.05 |
Dashboard /wp-admin | 2,243 ▲52 | 5.84 ▼0.01 | 95.21 ▼12.22 | 78.92 ▲33.62 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 1.98 ▼0.06 | 34.27 ▼1.45 | 32.89 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 23.16 ▲0.18 | 687.98 ▲102.73 | 65.66 ▲16.85 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.23 ▼0.01 | 125.19 ▲26.86 | 86.35 ▲41.76 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 915 | 2.01 | 24.54 | 37.29 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 2,823 | 2.18 | 28.35 | 72.38 |
WP Courseware LMS /wp-admin/admin.php?page=grassblade-wp-courseware | 905 | 2.02 | 23.95 | 31.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- grassblade_addons
- widget_recent-comments
- theysaidso_admin_options
- grassblade_free_addons
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/grassblade-xapi-wp-courseware/functions.php on line 25
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/grassblade-xapi-wp-courseware/functions.php on line 25
- > 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-wp-courseware/functions.php on line 25
- > PHP Warning
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 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Donate link: Please fix this invalid URI: ""
grassblade-xapi-wp-courseware/functions.php 92% from 13 tests
Analyzing the main PHP file in "Experience API for WP Courseware by Grassblade" version 2.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grassblade-xapi-wp-courseware.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
Success! There were no dangerous files found in this plugin1,688 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 419 | 234 | 1,605 |
JavaScript | 1 | 31 | 0 | 83 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 159.50 |
▷ Minimum class complexity | 116.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 5.88 |
▷ 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 | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 65 | 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
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/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/no.png | 1.01KB | 0.62KB | ▼ 39.05% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |
img/gb_logo.png | 3.43KB | 0.84KB | ▼ 75.48% |