Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.77ms] Passed 4 tests
Server-side resources used by Invitation Code For Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.77 ▼5.93 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.89 ▲1.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.33 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.11 ▼3.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.71 ▼7.31 |
Server storage [IO: ▲0.15MB] [DB: ▲0.31MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Invitation Code For Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.26 ▼1.36 | 2.14 ▲0.01 | 47.40 ▲0.97 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.95 | 115.96 ▼4.54 | 41.76 ▼3.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 41.07 ▲2.57 | 32.09 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.51 ▼5.40 | 657.13 ▲4.79 | 57.36 ▼0.43 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.33 ▼0.03 | 93.25 ▼9.67 | 41.95 ▼3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× 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/invitation-code-for-contact-form-7/functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invitation-code-for-contact-form-7/class-admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: contact form 7, cf7 verification, cf7 subscribers, cf7 invitation code
invitation-code-for-contact-form-7/invitation-code-for-contact-form-7.php Passed 13 tests
The main file in "Invitation Code For Contact Form 7" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Create an invitation code for users with contact form 7 to get the confirmed subscribers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,711 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 49 | 50 | 1,229 |
PHP | 4 | 47 | 12 | 466 |
JavaScript | 2 | 1 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 13 | 86.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/calendar.png | 9.87KB | 0.84KB | ▼ 91.51% |
assets/images/calendar 1.png | 6.63KB | 4.51KB | ▼ 31.88% |