74% pepro-cf7-database

Code Review | PeproDev CF7 Database

WordPress plugin PeproDev CF7 Database scored74%from 54 tests.

About plugin

  • Plugin page: pepro-cf7-database
  • Plugin version: 1.8.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2020
  • Latest release: Aug 1, 2023
  • Number of updates: 24
  • Update frequency: every 46.3 days
  • Top authors: peprodev (95.83%)blackswanlab (8.33%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,588 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1645.00 ▲1.79
Dashboard /wp-admin3.33 ▲0.0348.49 ▲0.33
Posts /wp-admin/edit.php3.45 ▲0.0949.41 ▲2.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0598.18 ▼6.03
Media Library /wp-admin/upload.php3.26 ▲0.0337.07 ▲1.07
CF7 Database /wp-admin/admin.php?page=cf7db3.2531.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.161.75 ▼0.2843.26 ▲1.23
Dashboard /wp-admin2,205 ▲174.84 ▼1.06109.61 ▲0.7841.33 ▼1.01
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0734.66 ▼2.6134.61 ▲3.23
Add New Post /wp-admin/post-new.php1,530 ▼723.50 ▲0.44670.46 ▼4.3263.31 ▲13.52
Media Library /wp-admin/upload.php1,393 ▲54.21 ▲0.0095.47 ▼16.7544.42 ▼3.18
CF7 Database /wp-admin/admin.php?page=cf7db9072.3935.4627.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:
LanguageFilesBlank linesComment linesLines of code
JavaScript61702341,995
CSS6254301,374
PHP12441521
PO File1116152321
SVG12931
HTML2002

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 code0.30
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1381.25%
▷ Protected methods212.50%
▷ Private methods16.25%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%