78% db-access-adminer

Code Review | Database Access with Adminer

WordPress plugin Database Access with Adminer scored78%from 54 tests.

About plugin

  • Plugin page: db-access-adminer
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Feb 22, 2023
  • Number of updates: 11
  • Update frequency: every 20.4 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /8,863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by Database Access with Adminer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.74 ▼3.07
Dashboard /wp-admin3.47 ▲0.1745.47 ▼7.26
Posts /wp-admin/edit.php3.58 ▲0.2349.09 ▼0.19
Add New Post /wp-admin/post-new.php6.05 ▲0.1783.70 ▼16.48
Media Library /wp-admin/upload.php3.39 ▲0.1637.87 ▲1.82
Adminer /wp-admin/tools.php?page=db-access-adminer3.3632.93
Database Access with Adminer /wp-admin/options-general.php?page=db-access-adminer-options3.3637.68

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Database Access with Adminer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.32 ▼1.211.86 ▲0.0142.99 ▼0.58
Dashboard /wp-admin2,217 ▲264.85 ▼1.05110.26 ▲7.6640.20 ▼1.50
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0140.63 ▲1.0636.68 ▲0.55
Add New Post /wp-admin/post-new.php1,520 ▼2217.67 ▼0.75685.80 ▲75.3956.86 ▲8.40
Media Library /wp-admin/upload.php1,396 ▲114.18 ▼0.0695.34 ▼7.9039.90 ▼5.50
Adminer /wp-admin/tools.php?page=db-access-adminer7592.0123.4923.80
Database Access with Adminer /wp-admin/options-general.php?page=db-access-adminer-options8842.0222.1230.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/db-access-adminer/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Lev0\\DbAccessAdminer\\add_action() in wp-content/plugins/db-access-adminer/db-access-adminer.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: sql, database, recovery, import

db-access-adminer/db-access-adminer.php 92% from 13 tests

This is the main PHP file of "Database Access with Adminer" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6.0" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin25,434 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP57341,40119,737
CSS87361945,697

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions933.33%
▷ Anonymous functions1866.67%
Constants14
▷ Global constants428.57%
▷ Class constants1071.43%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin