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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.71ms] Passed 4 tests
A check of server-side resources used by PeproDev CF7 Database
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.00 ▲1.79 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.49 ▲0.33 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.41 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 98.18 ▼6.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.07 ▲1.07 |
CF7 Database /wp-admin/admin.php?page=cf7db | 3.25 | 31.65 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cf7db |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PeproDev CF7 Database
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.21 ▼1.16 | 1.75 ▼0.28 | 43.26 ▲1.23 |
Dashboard /wp-admin | 2,205 ▲17 | 4.84 ▼1.06 | 109.61 ▲0.78 | 41.33 ▼1.01 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.05 ▲0.07 | 34.66 ▼2.61 | 34.61 ▲3.23 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.50 ▲0.44 | 670.46 ▼4.32 | 63.31 ▲13.52 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.21 ▲0.00 | 95.47 ▼16.75 | 44.42 ▼3.18 |
CF7 Database /wp-admin/admin.php?page=cf7db | 907 | 2.39 | 35.46 | 27.06 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cf7db
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pepro-cf7-database/pepro-cf7-db.php
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: cf7, contact form 7 database, contact form 7, save contact form 7 uploads, cf7 database...
pepro-cf7-database/pepro-cf7-db.php 85% from 13 tests
The main file in "PeproDev CF7 Database" v. 1.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("pepro-cf7-database.php" instead of "pepro-cf7-db.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,244 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 170 | 234 | 1,995 |
CSS | 6 | 254 | 30 | 1,374 |
PHP | 1 | 24 | 41 | 521 |
PO File | 1 | 116 | 152 | 321 |
SVG | 1 | 2 | 9 | 31 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 1 | 6.25% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |