Benchmarks
Plugin footprint 83% from 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.40MB] [CPU: ▼1.90ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 Creamailer Extension
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 37.63 ▼10.83 |
Dashboard /wp-admin | 3.74 ▲0.43 | 47.09 ▲0.01 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 53.10 ▲4.85 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 96.87 ▲0.87 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 39.46 ▲2.36 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 452 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 Creamailer Extension
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.56 | 1.57 ▼0.38 | 36.82 ▼15.46 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.02 | 95.46 ▼12.35 | 37.39 ▼4.15 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.05 | 40.62 ▲4.43 | 33.61 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,356 ▼161 | 16.62 ▼0.90 | 571.23 ▼61.55 | 49.49 ▲2.56 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.24 ▼0.05 | 98.40 ▲3.24 | 40.42 ▼1.78 |
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-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cf7-creamailer-extension/vendor/phpoption/phpoption/tests/bootstrap.php
- 191× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cf7-creamailer-extension/vendor/paragonie/random_compat/tests/unit_with_basedir/UtilityTest.php:2
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Warning
require_once(wp-content/plugins/cf7-creamailer-extension/vendor/paragonie/random_compat/lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-creamailer-extension/vendor/paragonie/random_compat/tests/specific/capicom.php on line 3
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/cf7-creamailer-extension/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cf7-creamailer-extension/vendor/vlucas/phpdotenv/tests/Dotenv/FactoryTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Environment\\Adapter\\AdapterInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/vlucas/phpdotenv/src/Environment/Adapter/ArrayAdapter.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/cf7-creamailer-extension/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #0 (screenshot-1.png)
- Screenshots: Please describe screenshot #1 in cf7-creamailer-extension/assets to your readme.txt
cf7-creamailer-extension/cf7cm-standalone.php 85% from 13 tests
This is the main PHP file of "Contact Form 7 Creamailer Extension" version 0.1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-creamailer-extension.php" instead of "cf7cm-standalone.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin62,399 lines of code in 387 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 278 | 4,646 | 8,881 | 43,476 |
JSON | 21 | 0 | 0 | 10,851 |
Markdown | 37 | 1,473 | 0 | 4,453 |
reStructuredText | 8 | 859 | 1,081 | 1,132 |
CSS | 1 | 213 | 0 | 852 |
YAML | 17 | 92 | 2 | 539 |
JavaScript | 4 | 35 | 153 | 304 |
XML | 10 | 0 | 0 | 282 |
make | 5 | 59 | 5 | 232 |
Sass | 1 | 21 | 0 | 105 |
PO File | 1 | 34 | 34 | 85 |
Bourne Shell | 2 | 8 | 7 | 50 |
Python | 1 | 18 | 22 | 28 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 24 | |
Traits | 3 | |
Classes | 222 | |
▷ Abstract classes | 4 | 1.80% |
▷ Concrete classes | 218 | 98.20% |
▷ Final classes | 23 | 10.55% |
Methods | 2,167 | |
▷ Static methods | 179 | 8.26% |
▷ Public methods | 1,968 | 90.82% |
▷ Protected methods | 29 | 1.34% |
▷ Private methods | 170 | 7.84% |
Functions | 578 | |
▷ Named functions | 90 | 15.57% |
▷ Anonymous functions | 488 | 84.43% |
Constants | 178 | |
▷ Global constants | 51 | 28.65% |
▷ Class constants | 127 | 71.35% |
▷ Public constants | 127 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.72MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 64.18KB | 22.81KB | ▼ 64.45% |
assets/screenshot-1.0.1.2.png | 114.58KB | 37.77KB | ▼ 67.03% |
vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |
assets/screenshot-1.0.1.0.png | 104.55KB | 38.97KB | ▼ 62.72% |
assets/images/logo.png | 31.44KB | 10.78KB | ▼ 65.70% |