Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼304.36ms] Passed 4 tests
A check of server-side resources used by GamiPress - WPLMS integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.83 ▲5.02 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.51 ▼0.07 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 39.27 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 105.29 ▼1,212.02 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 24.43 ▼6.16 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GamiPress - WPLMS integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲73 | 16.22 ▲0.69 | 6.48 ▲0.48 | 3.21 ▲0.71 |
Dashboard /wp-admin | 2,923 ▲65 | 6.14 ▼0.02 | 120.25 ▼12.30 | 155.86 ▲0.46 |
Posts /wp-admin/edit.php | 2,719 ▲31 | 3.23 ▲0.00 | 63.38 ▼1.19 | 138.76 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,680 ▼78 | 16.83 ▼5.24 | 432.43 ▼3.76 | 153.13 ▼7.24 |
Media Library /wp-admin/upload.php | 1,726 ▲31 | 5.54 ▲0.00 | 139.18 ▼0.19 | 182.39 ▼12.54 |
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wplms-integration/gamipress-wplms.php:246
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
gamipress-wplms-integration/gamipress-wplms.php 92% from 13 tests
The entry point to "GamiPress - WPLMS integration" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-wplms-integration.php" instead of "gamipress-wplms.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 detected566 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 211 | 449 | 519 |
JavaScript | 2 | 12 | 4 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.67 |
▷ 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 | 30 | |
▷ Named functions | 30 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin