Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.50ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form 7 Database - CFDB7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.80 ▲6.34 |
Dashboard /wp-admin | 3.48 ▲0.13 | 47.18 ▼17.09 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.12 ▲3.20 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.02 ▼7.71 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.06 ▲3.59 |
Contact Forms /wp-admin/admin.php?page=advanced-cf7-listing | 3.38 | 33.50 |
Premium /wp-admin/admin.php?page=acf7_extensions | 3.37 | 35.43 |
Server storage [IO: ▲5.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 144 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_advanced_cf7_data |
New WordPress options |
---|
plugin_db_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Database - CFDB7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.63 ▼0.53 | 4.86 ▲2.91 | 43.17 ▲1.49 |
Dashboard /wp-admin | 2,230 ▲42 | 5.84 ▲0.94 | 102.76 ▼13.07 | 39.33 ▼6.82 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.05 | 39.09 ▼2.01 | 33.90 ▼6.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.41 ▼5.83 | 600.70 ▼85.96 | 58.48 ▼2.20 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.24 ▲0.10 | 100.43 ▼3.39 | 45.12 ▼1.31 |
Contact Forms /wp-admin/admin.php?page=advanced-cf7-listing | 888 | 2.06 | 24.71 | 23.29 |
Premium /wp-admin/admin.php?page=acf7_extensions | 822 | 2.18 | 23.23 | 23.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_advanced_cf7_data
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- plugin_db_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/makefont.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/tcpdf.php on line 19670
- > 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 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-subpages.php on line 31
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/makefont.php on line 595
- > 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 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 Notice
Undefined index: argv in wp-content/plugins/advanced-cf7-database/inc/pdfgenerate/tcpdf/fonts/utils/makefont.php on line 594
- > 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 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #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 main PHP file in "Contact Form 7 Database - CFDB7" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with 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
Analyzing cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,763)
- Cyclomatic complexity of methods should 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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_cell.png | 37.51KB | 36.62KB | ▼ 2.39% |
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% |