Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▲2.48ms] Passed 4 tests
Analyzing server-side resources used by Advanced Contact form 7 DB
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 39.26 ▼0.78 |
Dashboard /wp-admin | 3.94 ▲0.64 | 51.39 ▲8.45 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 49.06 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 88.61 ▲0.91 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 40.25 ▲6.52 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.03 | 37.02 |
Server storage [IO: ▲14.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,390 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_cf7_vdata |
wp_cf7_vdata_entry |
New WordPress options |
---|
fs_accounts |
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
fs_active_plugins |
vsz_cf7_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Contact form 7 DB
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲29 | 13.65 ▲0.34 | 1.83 ▲0.13 | 28.89 ▼10.62 |
Dashboard /wp-admin | 2,221 ▲15 | 5.85 ▲0.98 | 94.02 ▼3.74 | 42.08 ▲6.23 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.00 ▼0.05 | 34.91 ▲1.60 | 34.83 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,519 ▼15 | 23.22 ▲0.04 | 694.25 ▲32.83 | 56.91 ▲0.73 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.25 ▲0.12 | 96.47 ▼13.58 | 46.06 ▼1.38 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,050 | 1.70 | 26.62 | 26.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_cf7_vdata
- wp_cf7_vdata_entry
- This plugin does not fully uninstall, leaving 10 options in the database
- vsz_cf7_db_version
- widget_recent-comments
- fs_active_plugins
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
- db_upgraded
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
Please fix the following
- 17× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/advanced-cf7-db/admin/partials/import_cf7_csv.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xlsx/PHP_XLSXWriter-master/examples/ex02-formats.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/advanced-cf7-db/includes/vsz-cf7-db-function.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xlsx/PHP_XLSXWriter-master/examples/ex06-strings-250k-rows.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xlsx/PHP_XLSXWriter-master/example.php
- > /wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xlsx/PHP_XLSXWriter-master/examples/ex05-numbers-250k-rows.php
- > /wp-content/plugins/advanced-cf7-db/admin/partials/advanced-cf7-db-admin-display.php
- 423× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php:7
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xlsx/PHP_XLSXWriter-master/xlsxwriter.class.php on line 811
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_DefinitionCache' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php:12
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertBase' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php:8
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Lexer_DOMLex' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/advanced-cf7-db/admin/class/PHPExcel/CachedObjectStorage/MemoryGZip.php:36
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php:36
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ident.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/advanced-cf7-db/includes/libraries/excel/xls/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: Screenshot #6 (Developer Support) image not found
advanced-cf7-db/advanced-cf7-db.php Passed 13 tests
The main file in "Advanced Contact form 7 DB" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
135 characters long description:
Save all contact form 7 submitted data to the database, View, Export, ordering, Change field labels, Import data using CSV very easily.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected191,064 lines of code in 1,220 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,154 | 39,223 | 105,292 | 182,002 |
CSS | 19 | 58 | 53 | 3,337 |
JavaScript | 7 | 291 | 217 | 2,346 |
Markdown | 18 | 434 | 0 | 1,295 |
JSON | 11 | 1 | 0 | 1,252 |
SVG | 5 | 0 | 0 | 659 |
YAML | 1 | 22 | 0 | 96 |
Bourne Shell | 2 | 3 | 1 | 43 |
XML | 2 | 7 | 1 | 33 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 76 | |
Interfaces | 34 | |
Traits | 0 | |
Classes | 940 | |
▷ Abstract classes | 52 | 5.53% |
▷ Concrete classes | 888 | 94.47% |
▷ Final classes | 1 | 0.11% |
Methods | 9,128 | |
▷ Static methods | 2,325 | 25.47% |
▷ Public methods | 6,924 | 75.85% |
▷ Protected methods | 340 | 3.72% |
▷ Private methods | 1,864 | 20.42% |
Functions | 321 | |
▷ Named functions | 286 | 89.10% |
▷ Anonymous functions | 35 | 10.90% |
Constants | 2,030 | |
▷ Global constants | 241 | 11.87% |
▷ Class constants | 1,789 | 88.13% |
▷ Public constants | 1,734 | 96.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/advanced-cf7-db.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |