Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼1.81ms] Passed 4 tests
An overview of server-side resources used by PR WPCF7 Locaweb
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.15 ▲2.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.53 ▼6.32 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.77 ▲0.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.48 ▲0.64 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.83 ▼1.65 |
PR WPCF7 Locaweb /wp-admin/edit.php?post_type=prwpcf7locaweb | 3.30 | 36.60 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PR WPCF7 Locaweb
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.35 ▼0.29 | 1.80 ▼0.53 | 39.67 ▼5.89 |
Dashboard /wp-admin | 2,192 ▲18 | 5.58 ▲0.04 | 91.44 ▼4.87 | 40.63 ▼0.83 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.01 | 37.54 ▼2.24 | 37.39 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,410 ▼116 | 18.02 ▼5.10 | 575.27 ▼120.18 | 57.95 ▲1.58 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.23 ▼0.04 | 104.05 ▲0.06 | 44.05 ▲1.26 |
PR WPCF7 Locaweb /wp-admin/edit.php?post_type=prwpcf7locaweb | 1,049 | 1.92 | 35.42 | 30.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-admin-functions.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-front-functions.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-admin-functions.php:185
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: contact form, email marketing locaweb
pr-wpcf7-locaweb/pr-wpcf7-locaweb.php Passed 13 tests
Analyzing the main PHP file in "PR WPCF7 Locaweb" version 1.0
75 characters long description:
Integração do Contact Form 7 com o sistema de Email Marketing da Locaweb.
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
Success! There were no dangerous files found in this plugin547 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 89 | 114 | 547 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin