10% wp-phpmyadmin-extension

Code Review | WP phpMyAdmin

WordPress plugin WP phpMyAdmin scored10%from 54 tests.

About plugin

  • Plugin page: wp-phpmyadmin-ext...
  • Plugin version: 5.2.1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5+
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Feb 24, 2023
  • Number of updates: 223
  • Update frequency: every 8.2 days
  • Top authors: ttodua (39.46%)tazotodua (38.57%)itasksoftware (13.45%)puvoxsoftware (9.87%)

Code review

54 tests

User reviews

48 reviews

Install metrics

40,000+ active /709,191 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/wp-phpmyadmin-extension/library_wp.php+1929
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/wp-phpmyadmin-extension/library_wp.php:1929
    Stack trace:
    #0 wp-content/plugins/wp-phpmyadmin-extension/library_wp.php(1863): Puvox\wp_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲2.06MB] [CPU: ▲10.12ms] Passed 4 tests

An overview of server-side resources used by WP phpMyAdmin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.52 ▲2.0649.98 ▲7.39
Dashboard /wp-admin5.36 ▲2.0558.63 ▲9.05
Posts /wp-admin/edit.php5.47 ▲2.1264.47 ▲17.62
Add New Post /wp-admin/post-new.php7.94 ▲2.05106.36 ▲7.19
Media Library /wp-admin/upload.php5.28 ▲2.0551.75 ▲16.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3,091 new files
Database: 1 new table, 7 new options
New tables
wp_wp_phpmyadmin_extension__errors_log
New WordPress options
widget_recent-posts
can_compress_scripts
wp-phpmyadmin-extension
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP phpMyAdmin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.30 ▼1.061.70 ▼0.5938.95 ▼10.03
Dashboard /wp-admin2,209 ▲214.93 ▲0.05117.29 ▲1.0289.97 ▲43.26
Posts /wp-admin/edit.php2,113 ▲242.02 ▲0.0337.65 ▲0.0133.68 ▼4.37
Add New Post /wp-admin/post-new.php1,544 ▲3023.06 ▲5.53730.60 ▲34.6270.75 ▲15.45
Media Library /wp-admin/upload.php1,397 ▲94.10 ▼0.0897.92 ▼11.5970.11 ▲23.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_wp_phpmyadmin_extension__errors_log
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wp-phpmyadmin-extension
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/index.php
    • > /wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Plugins/Schema/Pdf/PdfRelationSchema.php
    • > /wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Plugins/Schema/Pdf/Pdf.php
    • > /wp-content/plugins/wp-phpmyadmin-extension/default_config.php
    • > /wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/js/messages.php
    • > /wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/url.php
  • 1463× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Plugins\\Transformations\\Abs\\LongToIPv4TransformationsPlugin' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Plugins/Transformations/Text_Plain_Longtoipv4.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Plugins\\ImportPlugin' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Plugins/Import/ImportOds.php:38
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\\DceSecurityProviderInterface' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'BaconQrCode\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/bacon/bacon-qr-code/src/Exception/RuntimeException.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\avigation\odes\ode' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Navigation/Nodes/NodeDatabaseChild.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Config\\Definition\\Exception\\InvalidConfigurationException' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/symfony/config/Definition/Exception/ForbiddenOverwriteException.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Plugins\\Transformations\\Abs\\InlineTransformationsPlugin' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/libraries/classes/Plugins/Transformations/Output/Image_PNG_Inline.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Brick\\Math\\Exception\\MathException' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/brick/math/src/Exception/IntegerOverflowException.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/ramsey/uuid/src/Exception/TimeSourceException.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'BaconQrCode\\Renderer\\Eye\\EyeInterface' not found in wp-content/plugins/wp-phpmyadmin-extension/lib/phpMyAdmin/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
The official readme.txt might help

wp-phpmyadmin-extension/index.php 92% from 13 tests

The principal PHP file in "WP phpMyAdmin" v. 5.2.1.02 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-phpmyadmin-extension.php" instead of "index.php")

Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin353,418 lines of code in 2,753 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,20850,903140,036261,456
JavaScript1145,23614,36755,121
Twig2641,12817317,841
JSON62106,920
Markdown701,95105,587
Sass231,0021214,595
CSS6102741,601
SQL496178296
SVG1001
HTML1100

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,415)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 500)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.61
▷ Minimum class complexity1.00
▷ Maximum class complexity4,415.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity500.00
Code structure
Namespaces290
Interfaces179
Traits44
Classes1,853
▷ Abstract classes1357.29%
▷ Concrete classes1,71892.71%
▷ Final classes43125.09%
Methods12,830
▷ Static methods2,68820.95%
▷ Public methods10,34480.62%
▷ Protected methods7425.78%
▷ Private methods1,74413.59%
Functions1,829
▷ Named functions1,49181.52%
▷ Anonymous functions33818.48%
Constants1,809
▷ Global constants683.76%
▷ Class constants1,74196.24%
▷ Public constants1,53388.05%

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
257 compressed PNG files occupy 0.34MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/phpMyAdmin/themes/pmahomme/img/new_struct_selected.png0.18KB0.26KB0.00%
lib/phpMyAdmin/themes/pmahomme/img/b_comment.png0.33KB0.43KB0.00%
lib/phpMyAdmin/themes/pmahomme/img/designer/2rightarrow_m.png0.61KB0.67KB0.00%
lib/phpMyAdmin/themes/pmahomme/img/b_views.png0.59KB0.76KB0.00%
lib/phpMyAdmin/themes/pmahomme/img/b_docs.png0.69KB0.82KB0.00%