Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼3.13ms] Passed 4 tests
A check of server-side resources used by SNORDIAN's H5PxAPIkatchu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 36.67 ▼0.00 |
Dashboard /wp-admin | 3.74 ▲0.39 | 47.25 ▼14.84 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 48.36 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 93.02 ▲3.49 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 38.88 ▲4.40 |
H5PxAPIkatchu /wp-admin/options-general.php?page=h5pxapikatchu-admin | 3.57 | 33.88 |
Server storage [IO: ▲2.86MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 95 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_h5pxapikatchu_actor |
wp_h5pxapikatchu_object |
wp_h5pxapikatchu_result |
wp_h5pxapikatchu |
wp_h5pxapikatchu_verb |
New WordPress options |
---|
h5pxapikatchu_defaults_set |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
h5pxapikatchu_option |
widget_recent-posts |
h5pxapikatchu_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SNORDIAN's H5PxAPIkatchu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.74 ▲0.36 | 1.69 ▼0.37 | 38.93 ▼5.63 |
Dashboard /wp-admin | 2,212 ▲27 | 4.86 ▼0.96 | 114.67 ▼3.69 | 38.88 ▼9.93 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.06 | 39.38 ▲2.56 | 36.44 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,524 ▼4 | 23.50 ▲5.17 | 643.64 ▲2.33 | 49.66 ▼0.34 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.24 ▲0.02 | 97.37 ▲1.58 | 43.40 ▼0.27 |
H5PxAPIkatchu /wp-admin/options-general.php?page=h5pxapikatchu-admin | 1,041 | 2.76 | 45.11 | 40.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/h5pxapikatchu/h5pxapikachu.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 841
- > 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 838
- > 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 840
- > PHP Fatal error
Uncaught Error: Call to undefined function H5PXAPIKATCHU\\add_action() in wp-content/plugins/h5pxapikatchu/class-database.php:846
- > PHP Fatal error
Uncaught Error: Call to undefined function H5PXAPIKATCHU\\get_option() in wp-content/plugins/h5pxapikatchu/class-options.php:609
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 835
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/h5pxapikatchu/class-database.php on line 836
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: h5p, xapi
h5pxapikatchu/h5pxapikachu.php 85% from 13 tests
"SNORDIAN's H5PxAPIkatchu" version 0.4.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("h5pxapikatchu.php" instead of "h5pxapikachu.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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 detected27,851 lines of code in 82 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 | 2 | 150 | 160 | 423 |
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
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
DataTables/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |