Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼295.43ms] Passed 4 tests
Server-side resources used by GamiPress - H5P integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.70 ▲2.97 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.68 ▼0.71 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.89 ▼1.56 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 92.17 ▼1,177.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 22.55 ▼2.21 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for GamiPress - H5P integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲49 | 15.81 ▲0.17 | 5.62 ▲0.17 | 2.43 ▲0.09 |
Dashboard /wp-admin | 2,920 ▲62 | 6.05 ▼0.30 | 118.27 ▼13.78 | 156.95 ▼6.29 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.24 ▲0.01 | 64.04 ▼0.44 | 138.45 ▼12.33 |
Add New Post /wp-admin/post-new.php | 1,687 ▲19 | 18.81 ▲0.56 | 400.92 ▲24.20 | 151.70 ▼0.23 |
Media Library /wp-admin/upload.php | 1,726 ▲31 | 5.53 ▲0.02 | 141.14 ▼13.51 | 187.95 ▼200.85 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-h5p-integration/gamipress-h5p-integration.php:223
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
gamipress-h5p-integration/gamipress-h5p-integration.php Passed 13 tests
The main PHP file in "GamiPress - H5P integration" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Connect GamiPress with H5P.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin705 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 227 | 429 | 603 |
JavaScript | 2 | 18 | 4 | 102 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 44.44% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin