Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼168.34ms] Passed 4 tests
An overview of server-side resources used by Easy Invitation Codes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.83 ▲10.34 |
Dashboard /wp-admin | 3.17 ▲0.12 | 51.82 ▲1.05 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 47.04 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 99.70 ▼666.64 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 38.16 ▼8.59 |
Some Options /wp-admin/admin.php?page=baweic_settings | 3.09 | 33.21 |
Generate codes /wp-admin/admin.php?page=baweic_rand_code | 3.09 | 33.31 |
Invitation Codes /wp-admin/admin.php?page=baweic_list_codes | 3.06 | 30.30 |
Add new code /wp-admin/admin.php?page=baweic_add_code | 3.09 | 32.80 |
Codes list (raw) /wp-admin/admin.php?page=baweic_raw_codes | 3.08 | 26.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options |
---|
baweic_options |
baweic_fields |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Invitation Codes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.00 ▲0.35 | 9.60 ▼2.07 | 52.11 ▲1.15 |
Dashboard /wp-admin | 3,014 ▲80 | 5.90 ▼0.06 | 150.95 ▲10.89 | 117.90 ▼0.71 |
Posts /wp-admin/edit.php | 2,783 ▲44 | 2.73 ▲0.01 | 78.67 ▲9.59 | 94.06 ▼6.87 |
Add New Post /wp-admin/post-new.php | 1,632 ▼51 | 18.60 ▲0.58 | 382.37 ▼2.74 | 120.45 ▼3.41 |
Media Library /wp-admin/upload.php | 1,851 ▲44 | 5.01 ▼0.01 | 155.30 ▼11.76 | 126.09 ▼17.45 |
Some Options /wp-admin/admin.php?page=baweic_settings | 1,127 | 2.09 | 55.80 | 96.40 |
Generate codes /wp-admin/admin.php?page=baweic_rand_code | 1,156 | 2.05 | 54.71 | 97.05 |
Invitation Codes /wp-admin/admin.php?page=baweic_list_codes | 1,260 | 2.05 | 56.33 | 74.65 |
Add new code /wp-admin/admin.php?page=baweic_add_code | 1,117 | 2.06 | 54.93 | 97.23 |
Codes list (raw) /wp-admin/admin.php?page=baweic_raw_codes | 1,075 | 2.05 | 59.26 | 76.72 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=baweic_list_codes
- > Notice in wp-content/plugins/baw-invitation-codes/inc/back-end.php+260
Undefined variable: input_id
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/baw-invitation-codes/inc/back-end.php
- > /wp-content/plugins/baw-invitation-codes/inc/front-end.php
- > /wp-content/plugins/baw-invitation-codes/inc/fields.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/baw-invitation-codes/baw-eic.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6, #7 in baw-invitation-codes/assets to your readme.txt
baw-invitation-codes/baw-eic.php 92% from 13 tests
The entry point to "Easy Invitation Codes" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("baw-invitation-codes.php" instead of "baw-eic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected578 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 12 | 420 |
PO File | 1 | 64 | 85 | 158 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin