90% secure-db-connection

Code Review | Secure DB Connection

WordPress plugin Secure DB Connection scored90%from 54 tests.

About plugin

  • Plugin page: secure-db-connection
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 21, 2016
  • Latest release: Jul 8, 2018
  • Number of updates: 31
  • Update frequency: every 22.2 days
  • Top authors: hypertextranch (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /22,133 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.13ms] Passed 4 tests

Analyzing server-side resources used by Secure DB Connection
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.70 ▲3.52
Dashboard /wp-admin3.33 ▼0.0250.81 ▼18.20
Posts /wp-admin/edit.php3.38 ▲0.0248.99 ▲2.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.93 ▼12.53
Media Library /wp-admin/upload.php3.25 ▲0.0236.37 ▼0.00

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 1 file (5.80KB) outside of "wp-content/plugins/secure-db-connection/" and "wp-content/uploads/"
    • (new file) wp-content/db.php
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Secure DB Connection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.34 ▼0.041.79 ▼0.0044.65 ▼1.58
Dashboard /wp-admin2,200 ▲295.51 ▼0.0684.73 ▼4.2438.96 ▼5.10
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0034.34 ▼3.8833.34 ▼4.63
Add New Post /wp-admin/post-new.php1,535 ▲718.31 ▼4.83658.11 ▼16.8968.71 ▲6.21
Media Library /wp-admin/upload.php1,403 ▲94.19 ▼0.02105.76 ▲7.0548.97 ▲4.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: secure, db, ssl, encrypted, mysql

secure-db-connection/secure-db-connection.php Passed 13 tests

The primary PHP file in "Secure DB Connection" version 1.1.5 is used by WordPress to initiate all plugin functionality
58 characters long description:
Sets SSL keys and certs for encrypted database connections

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected351 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47575341
CSS12010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity17.25
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods631.58%
▷ Public methods1368.42%
▷ Protected methods00.00%
▷ Private methods631.58%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
PNG images were not found in this plugin