Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.88ms] Passed 4 tests
A check of server-side resources used by GamiPress - WS Form integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 54.78 ▲2.63 |
Dashboard /wp-admin | 3.43 ▲0.03 | 33.18 ▼1.36 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 35.93 ▼2.26 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.46 ▼1,180.65 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 25.12 ▲0.74 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
GamiPress - WS Form integration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲69 | 15.91 ▼0.10 | 5.66 ▼0.06 | 2.36 ▲0.04 |
Dashboard /wp-admin | 2,923 ▲62 | 6.03 ▼0.16 | 119.54 ▼23.58 | 156.71 ▼8.47 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.25 ▲0.01 | 62.47 ▲1.38 | 140.54 ▲5.01 |
Add New Post /wp-admin/post-new.php | 1,787 ▲126 | 21.22 ▼0.46 | 454.15 ▲58.67 | 160.35 ▲5.77 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.57 ▲0.04 | 143.21 ▲3.04 | 189.12 ▲3.44 |
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-ws-form-integration/gamipress-ws-form.php:230
- > PHP Fatal error
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 94% from 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
gamipress-ws-form-integration/gamipress-ws-form.php 92% from 13 tests
The main PHP script in "GamiPress - WS Form integration" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-ws-form-integration.php" instead of "gamipress-ws-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected476 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 193 | 425 | 440 |
JavaScript | 2 | 12 | 4 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
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 | 9.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin