Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/mediapost-extensao-para-contact-form-7/cf7-mediapost.php+273
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼55.17ms] Passed 4 tests
This is a short check of server-side resources used by @MediaPost - Extensão para Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.35 ▼34.33 |
Dashboard /wp-admin | 2.20 ▼1.15 | 6.05 ▼56.84 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.96 ▼39.54 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.73 ▼89.95 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.28 ▼30.42 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for @MediaPost - Extensão para Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.13 ▼1.24 | 1.65 ▼0.04 | 41.10 ▲0.36 |
Dashboard /wp-admin | 2,225 ▲40 | 4.89 ▼0.06 | 107.24 ▲6.83 | 40.29 ▼5.04 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.99 ▼0.07 | 41.65 ▲4.49 | 37.88 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.32 ▲5.85 | 671.95 ▼9.88 | 59.70 ▲1.77 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.26 ▲0.10 | 100.03 ▼5.47 | 48.55 ▲4.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/mediapost-extensao-para-contact-form-7/cf7-mediapost.php+273
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Mapi\\Helper\\ContainerAbstract' not found in wp-content/plugins/mediapost-extensao-para-contact-form-7/includes/client/Response.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: formulario, extenso contact form 7, contact form 7, contact form 7 extension, mediapost
mediapost-extensao-para-contact-form-7/cf7-mediapost.php 85% from 13 tests
The entry point to "@MediaPost - Extensão para Contact Form 7" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("mediapost-extensao-para-contact-form-7.php" instead of "cf7-mediapost.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,473 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 323 | 805 | 1,408 |
CSS | 1 | 1 | 0 | 59 |
JavaScript | 1 | 5 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 3 | 17.65% |
▷ Concrete classes | 14 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 13 | 12.87% |
▷ Public methods | 84 | 83.17% |
▷ Protected methods | 6 | 5.94% |
▷ Private methods | 11 | 10.89% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.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
No PNG files were detected