72% dbviewer

Code Review | dbViewer

WordPress plugin dbViewer scored72%from 54 tests.

About plugin

  • Plugin page: dbviewer
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.3-5.9
  • WordPress version: 6.3.1
  • First release: Jan 17, 2022
  • Latest release: Jan 28, 2022
  • Number of updates: 3
  • Update frequency: every 5.3 days
  • Top authors: shaykisten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by dbViewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.13 ▼0.88
Dashboard /wp-admin3.32 ▼0.0243.58 ▼15.77
Posts /wp-admin/edit.php3.38 ▲0.0146.84 ▲2.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.89 ▼3.69
Media Library /wp-admin/upload.php3.25 ▲0.0133.90 ▼5.71
About /wp-admin/admin.php?page=dbViewer-about3.2129.77
dbViewer /wp-admin/admin.php?page=dbviewer3.2229.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for dbViewer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.37 ▼0.171.71 ▲0.1937.34 ▼0.13
Dashboard /wp-admin2,225 ▲445.62 ▼0.1185.25 ▼14.4736.29 ▼5.66
Posts /wp-admin/edit.php2,127 ▲272.02 ▲0.0140.04 ▲4.4335.59 ▼1.74
Add New Post /wp-admin/post-new.php1,548 ▲1723.06 ▼0.13620.32 ▼24.6551.10 ▼2.64
Media Library /wp-admin/upload.php1,430 ▲334.19 ▼0.0592.95 ▼32.6842.09 ▼9.15
About /wp-admin/admin.php?page=dbViewer-about8791.9926.1930.28
dbViewer /wp-admin/admin.php?page=dbviewer8821.9621.2422.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 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 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dbviewer/views/dbViewer_about_display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dbviewer/dbViewer.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/dbviewer/views/dbViewer_menu_display.php:40

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=dbViewer-about
    • > Network (severe)
    https://www.paypalobjects.com/en_ZA/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2 in dbviewer/assets to your readme.txt
You can look at the official readme.txt

dbviewer/dbViewer.php 77% from 13 tests

The main PHP script in "dbViewer" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: The principal plugin file should be the same as the plugin slug ("dbviewer.php" instead of "dbViewer.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33994120

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin