Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼142.79ms] Passed 4 tests
Analyzing server-side resources used by Advanced Contact Form 7 - Compact DB
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 35.40 ▲6.31 |
Dashboard /wp-admin | 3.09 ▲0.04 | 46.04 ▲3.32 |
Posts /wp-admin/edit.php | 3.18 ▲0.06 | 43.03 ▼3.07 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.70 ▼568.37 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 34.25 ▼3.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_cf7cdb_data |
New WordPress options |
---|
my_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Contact Form 7 - Compact DB
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲57 | 15.93 ▼0.02 | 10.17 ▼3.13 | 46.14 ▲0.26 |
Dashboard /wp-admin | 2,982 ▲51 | 5.99 ▲0.03 | 144.38 ▼8.75 | 115.89 ▼5.59 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.72 ▲0.03 | 65.37 ▲1.28 | 97.38 ▲12.21 |
Add New Post /wp-admin/post-new.php | 1,627 ▼45 | 21.28 ▲2.41 | 272.66 ▼109.18 | 108.68 ▼7.53 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.04 ▼0.07 | 146.00 ▼20.45 | 123.62 ▲0.17 |
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
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_cf7cdb_data
- The uninstall procedure has failed, leaving 1 option in the database
- my_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-contact-form-7-compact-db/cf7cdb.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
advanced-contact-form-7-compact-db/cf7cdb.php 92% from 13 tests
The main PHP file in "Advanced Contact Form 7 - Compact DB" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-contact-form-7-compact-db.php" instead of "cf7cdb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin289 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 91 | 32 | 182 |
CSS | 1 | 0 | 0 | 62 |
JavaScript | 2 | 9 | 0 | 45 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin