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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼305.65ms] Passed 4 tests
An overview of server-side resources used by GamiPress - eLearnCommerce (WPEP) integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 59.74 ▲2.35 |
Dashboard /wp-admin | 3.44 ▲0.03 | 35.64 ▼12.87 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 42.56 ▲1.38 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 106.00 ▼1,211.20 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 31.70 ▲0.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GamiPress - eLearnCommerce (WPEP) integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲69 | 15.15 ▼0.81 | 6.80 ▲0.31 | 2.35 ▼0.44 |
Dashboard /wp-admin | 2,920 ▲65 | 6.11 ▼0.06 | 122.94 ▼15.86 | 179.52 ▲7.72 |
Posts /wp-admin/edit.php | 2,721 ▲64 | 3.25 ▼0.00 | 62.86 ▼24.79 | 138.88 ▼10.53 |
Add New Post /wp-admin/post-new.php | 1,726 ▲36 | 21.26 ▼0.01 | 446.28 ▼28.88 | 207.44 ▲51.85 |
Media Library /wp-admin/upload.php | 1,717 ▲16 | 5.54 ▲0.00 | 141.77 ▼7.33 | 242.69 ▲58.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wpep-integration/gamipress-wpep-integration.php:226
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: You are using too many tags: 23 tag instead of maximum 10
gamipress-wpep-integration/gamipress-wpep-integration.php Passed 13 tests
"GamiPress - eLearnCommerce (WPEP) integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Connect GamiPress with eLearnCommerce (WPEP).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin504 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 197 | 403 | 429 |
JavaScript | 2 | 14 | 10 | 75 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
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 | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin