10% database-entries-manager-for-contact-form-7

Code Review | Database Entries Manager for Contact Form 7

WordPress plugin Database Entries Manager for Contact Form 7 scored10%from 54 tests.

About plugin

  • Plugin page: database-entries-...
  • Plugin version: 1.0.184
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: May 20, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wisercoding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /411 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/database-entries-manager-for-contact-form-7/wicocf7db.php+22
    include_once(wp-content/plugins/database-entries-manager-for-contact-form-7/wicore\business.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.31ms] Passed 4 tests

Server-side resources used by Database Entries Manager for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.74 ▼4.37
Dashboard /wp-admin3.31 ▲0.0054.82 ▲4.88
Posts /wp-admin/edit.php3.36 ▲0.0055.23 ▲0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.04 ▼12.32
Media Library /wp-admin/upload.php3.23 ▲0.0038.84 ▼0.65

Server storage [IO: ▲2.43MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Database Entries Manager for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.27 ▼0.122.19 ▲0.1539.76 ▼7.08
Dashboard /wp-admin2,198 ▲215.64 ▼0.0491.30 ▼4.0341.87 ▼3.48
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0039.36 ▼1.9940.45 ▲1.49
Add New Post /wp-admin/post-new.php1,545 ▲13623.25 ▲5.27674.43 ▲86.1453.82 ▲2.44
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.08110.33 ▲6.4749.29 ▲7.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wicocf7db_wicore_business_uirender_admin_pageheader_start() in wp-content/plugins/database-entries-manager-for-contact-form-7/pages/admin/main.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wicocf7db_wicore_business_uirender_admin_pageheader_start() in wp-content/plugins/database-entries-manager-for-contact-form-7/pages/admin/about.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: cf7 database, contact form 7 admin, cf7 admin dashboard, save cf7 data, contact form 7...

database-entries-manager-for-contact-form-7/wicocf7db.php 85% from 13 tests

The main PHP script in "Database Entries Manager for Contact Form 7" version 1.0.184 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("database-entries-manager-for-contact-form-7.php" instead of "wicocf7db.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin14,080 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS8113666,300
SVG3086,021
PHP185963871,335
JavaScript88057424

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions58
▷ Named functions5696.55%
▷ Anonymous functions23.45%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-home.png6.75KB3.93KB▼ 41.78%
images/wp-pluginlogo.png0.70KB0.60KB▼ 14.17%
images/logo.png13.22KB4.78KB▼ 63.82%
images/icon-save.png2.32KB1.94KB▼ 16.15%
images/icon-about.png1.90KB1.69KB▼ 10.94%