Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼307.84ms] Passed 4 tests
Server-side resources used by Contact Form 7 Database - CFDB7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 58.30 ▲8.89 |
Dashboard /wp-admin | 3.58 ▲0.18 | 36.09 ▲3.56 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 42.15 ▲6.50 |
Add New Post /wp-admin/post-new.php | 7.05 ▲0.08 | 95.92 ▼1,244.94 |
Media Library /wp-admin/upload.php | 3.46 ▲0.17 | 26.80 ▲3.54 |
Contact Forms /wp-admin/admin.php?page=advanced-cf7-listing | 3.44 | 27.04 |
Premium /wp-admin/admin.php?page=acf7_extensions | 3.43 | 24.13 |
Server storage [IO: ▲5.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_advanced_cf7_data |
New WordPress options |
---|
plugin_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Database - CFDB7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,829 ▲87 | 15.79 ▼0.34 | 7.68 ▲1.70 | 2.54 ▲0.37 |
Dashboard /wp-admin | 2,926 ▲68 | 6.15 ▲0.08 | 115.30 ▼17.50 | 154.82 ▼3.90 |
Posts /wp-admin/edit.php | 2,725 ▲31 | 3.25 ▲0.02 | 63.84 ▲1.11 | 144.58 ▲4.69 |
Add New Post /wp-admin/post-new.php | 1,782 ▲121 | 22.72 ▲6.61 | 409.23 ▲10.31 | 163.68 ▲13.47 |
Media Library /wp-admin/upload.php | 1,735 ▲37 | 5.51 ▼0.01 | 141.30 ▼0.33 | 192.19 ▲3.45 |
Contact Forms /wp-admin/admin.php?page=advanced-cf7-listing | 1,169 | 2.37 | 54.60 | 98.87 |
Premium /wp-admin/admin.php?page=acf7_extensions | 1,096 | 2.41 | 53.99 | 115.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_advanced_cf7_data
- This plugin does not fully uninstall, leaving 1 option in the database
- plugin_db_version
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/makefont.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(../config/lang/eng.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/example_055.php on line 30
- > PHP Notice
Undefined index: argv in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/makefont.php on line 594
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/advanced-cf7-database/class-advanced-cf7-database.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'Advanced_cf7_database' not found in wp-content/plugins/advanced-cf7-database/inc/class-advanced-cf7-main-pages.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-cf7-database/inc/class-advanced-cf7-main-pages.php on line 107
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-cf7-database/inc/class-advanced-cf7-main-pages.php on line 107
- > PHP Fatal error
Uncaught Error: Class 'Advanced_cf7_database' not found in wp-content/plugins/advanced-cf7-database/inc/class-plugin-functions.php:3
- > PHP Fatal error
Uncaught Error: Class 'Advanced_cf7_database' not found in wp-content/plugins/advanced-cf7-database/inc/class-contact-form-details.php:3
- > PHP Fatal error
require_once(): Failed opening required '../config/lang/eng.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/example_055.php on line 30
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-cf7-database/inc/class-advanced-cf7-subpages.php on line 31
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in advanced-cf7-database/assets to your readme.txt
- Contributors: Contributors not specified
advanced-cf7-database/class-advanced-cf7-database.php 92% from 13 tests
The entry point to "Contact Form 7 Database - CFDB7" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-cf7-database.php" instead of "class-advanced-cf7-database.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/ttf2ufm.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 1,718 | 11,521 | 131,984 |
SVG | 2 | 1 | 1 | 1,813 |
HTML | 1 | 0 | 0 | 11 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,763)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 446)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 342.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,763.00 |
Average method complexity | 9.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 446.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 627 | |
▷ Static methods | 1 | 0.16% |
▷ Public methods | 335 | 53.43% |
▷ Protected methods | 287 | 45.77% |
▷ Private methods | 5 | 0.80% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 103 | |
▷ Global constants | 102 | 99.03% |
▷ Class constants | 1 | 0.97% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/pdfgenerate/badge-header-logo.png | 27.87KB | 6.66KB | ▼ 76.11% |
inc/pdfgenerate/tcpdf/images/tcpdf_signature.png | 66.34KB | 25.47KB | ▼ 61.61% |
inc/pdfgenerate/tcpdf/images/_blank.png | 0.13KB | 0.09KB | ▼ 30.66% |
inc/pdfgenerate/tcpdf/images/tcpdf_cell.png | 37.51KB | 36.62KB | ▼ 2.39% |