84% wp-dbmyadmin

Code Review | Wordpress dbMyadmin

WordPress plugin Wordpress dbMyadmin scored84%from 54 tests.

About plugin

  • Plugin page: wp-dbmyadmin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Jul 11, 2014
  • Number of updates: 20
  • Update frequency: N/A
  • Top authors: syedamirhussain91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,347 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Wordpress dbMyadmin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.19 ▼10.44
Dashboard /wp-admin3.31 ▲0.0150.95 ▼17.78
Posts /wp-admin/edit.php3.43 ▲0.0750.71 ▲0.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.94 ▲3.60
Media Library /wp-admin/upload.php3.24 ▲0.0138.25 ▲1.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress dbMyadmin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.21 ▼0.252.21 ▲0.0844.15 ▲1.61
Dashboard /wp-admin2,215 ▲385.68 ▲0.0986.42 ▼6.0138.60 ▼2.42
Posts /wp-admin/edit.php2,123 ▲202.00 ▲0.0240.68 ▼0.4834.36 ▼3.89
Add New Post /wp-admin/post-new.php1,546 ▲1823.02 ▲0.17641.97 ▲46.4668.89 ▲9.06
Media Library /wp-admin/upload.php1,420 ▲234.19 ▼0.04100.07 ▼4.6244.60 ▼0.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-dbmyadmin/dbMyadmin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-dbmyadmin === )
You can take inspiration from this readme.txt

wp-dbmyadmin/dbMyadmin.php 92% from 13 tests

The entry point to "Wordpress dbMyadmin" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-dbmyadmin.php" instead of "dbMyadmin.php")

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
No dangerous file extensions were detected220 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1115160
JavaScript13438
CSS14422

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/back.png0.68KB1.01KB0.00%