Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼312.75ms] Passed 4 tests
An overview of server-side resources used by SNORDIAN's H5PxAPIkatchu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.42 | 71.89 ▲1.81 |
Dashboard /wp-admin | 3.79 ▲0.38 | 41.70 ▲1.06 |
Posts /wp-admin/edit.php | 4.01 ▲0.37 | 42.09 ▼2.83 |
Add New Post /wp-admin/post-new.php | 7.32 ▲0.35 | 109.15 ▼1,251.02 |
Media Library /wp-admin/upload.php | 3.73 ▲0.43 | 36.10 ▲1.85 |
H5PxAPIkatchu /wp-admin/options-general.php?page=h5pxapikatchu-admin | 3.65 | 30.19 |
Server storage [IO: ▲2.84MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 93 new files
Database: 5 new tables, 3 new options
New tables |
---|
wp_h5pxapikatchu |
wp_h5pxapikatchu_actor |
wp_h5pxapikatchu_verb |
wp_h5pxapikatchu_result |
wp_h5pxapikatchu_object |
New WordPress options |
---|
h5pxapikatchu_version |
h5pxapikatchu_option |
h5pxapikatchu_defaults_set |
Browser metrics Passed 4 tests
SNORDIAN's H5PxAPIkatchu: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,868 ▲124 | 16.04 ▲0.30 | 11.34 ▲2.43 | 3.54 ▲0.34 |
Dashboard /wp-admin | 2,958 ▲38 | 6.41 ▲0.01 | 183.48 ▼17.93 | 199.85 ▼30.65 |
Posts /wp-admin/edit.php | 2,725 ▲19 | 3.43 ▲0.01 | 91.61 ▲10.91 | 199.39 ▲27.04 |
Add New Post /wp-admin/post-new.php | 1,649 ▼13 | 20.92 ▲4.01 | 679.96 ▲44.10 | 222.99 ▲9.12 |
Media Library /wp-admin/upload.php | 1,734 ▲2 | 5.70 ▼0.03 | 181.60 ▼8.49 | 258.83 ▼14.14 |
H5PxAPIkatchu /wp-admin/options-general.php?page=h5pxapikatchu-admin | 1,336 | 3.60 | 110.03 | 200.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/h5pxapikatchu/h5pxapikachu.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 836
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 837
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 840
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 841
- > PHP Fatal error
Uncaught Error: Call to undefined function H5PXAPIKATCHU\\get_option() in wp-content/plugins/h5pxapikatchu/class-options.php:609
- > PHP Fatal error
Uncaught Error: Call to undefined function H5PXAPIKATCHU\\add_action() in wp-content/plugins/h5pxapikatchu/class-database.php:846
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 839
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 838
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 835
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: h5p, xapi
h5pxapikatchu/h5pxapikachu.php 85% from 13 tests
This is the main PHP file of "SNORDIAN's H5PxAPIkatchu" version 0.4.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("h5pxapikatchu.php" instead of "h5pxapikachu.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
Everything looks great! No dangerous files found in this plugin27,640 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 3,793 | 8,410 | 14,568 |
CSS | 28 | 1,167 | 149 | 10,704 |
PHP | 6 | 332 | 531 | 1,725 |
PO File | 1 | 75 | 80 | 212 |
XML | 1 | 93 | 249 | 156 |
Sass | 2 | 29 | 3 | 142 |
Markdown | 1 | 27 | 0 | 75 |
JSON | 1 | 2 | 0 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 32 | 43.84% |
▷ Public methods | 59 | 80.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 19.18% |
Functions | 21 | |
▷ Named functions | 18 | 85.71% |
▷ Anonymous functions | 3 | 14.29% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
DataTables/DataTables-1.10.18/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |