Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.32ms] Passed 4 tests
Analyzing server-side resources used by Integrate AWeber and Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.83 ▲1.87 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.99 ▼3.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.59 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.00 ▼0.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.24 ▲0.91 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Integrate AWeber and Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.29 ▼1.08 | 4.36 ▲2.16 | 39.08 ▼4.52 |
Dashboard /wp-admin | 2,216 ▲31 | 5.85 ▲0.97 | 95.18 ▼8.19 | 39.33 ▼3.97 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.03 | 39.41 ▲1.71 | 34.90 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,521 ▼7 | 17.79 ▼0.47 | 645.98 ▲26.85 | 67.80 ▲18.45 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.04 | 98.64 ▼3.40 | 48.79 ▲2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/cookie.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/examples/post.php
- 60× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/409.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/tests/Proxy/HTTP.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/408.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/431.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/501.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/505.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/500.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/tests/SSL.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/integrate-aweber-and-contact-form-7/vendor/rmccue/requests/library/Requests/Exception/HTTP/412.php:13
- > 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
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
8 plugin tags: contact form 7 extension, cf7 aweber extension, contact form 7 integration, awb, cf7 aweber integration...
integrate-aweber-and-contact-form-7/awb-cf7.php 85% from 13 tests
"Integrate AWeber and Contact Form 7" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integrate-aweber-and-contact-form-7.php" instead of "awb-cf7.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
Everything looks great! No dangerous files found in this plugin7,365 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 1,372 | 4,137 | 6,162 |
Markdown | 11 | 350 | 0 | 788 |
JavaScript | 2 | 12 | 10 | 128 |
CSS | 2 | 18 | 0 | 102 |
JSON | 3 | 0 | 0 | 84 |
YAML | 2 | 9 | 5 | 48 |
XML | 1 | 2 | 0 | 37 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 1 | 1.20% |
▷ Concrete classes | 82 | 98.80% |
▷ Final classes | 0 | 0.00% |
Methods | 433 | |
▷ Static methods | 79 | 18.24% |
▷ Public methods | 384 | 88.68% |
▷ Protected methods | 43 | 9.93% |
▷ Private methods | 6 | 1.39% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 27 | |
▷ Global constants | 3 | 11.11% |
▷ Class constants | 24 | 88.89% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/awbc-aweber-icon.png | 0.75KB | 0.77KB | 0.00% |
admin/images/awbc-favicon.png | 1.70KB | 0.89KB | ▼ 47.76% |