84% pexlechris-adminer

Code Review | Database Management tool - Adminer

WordPress plugin Database Management tool - Adminer scored84%from 54 tests.

About plugin

  • Plugin page: pexlechris-adminer
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Oct 21, 2023
  • Number of updates: 31
  • Update frequency: every 19.5 days
  • Top authors: pexlechris (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /29,010 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.88ms] Passed 4 tests

An overview of server-side resources used by Database Management tool - Adminer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.71 ▼4.91
Dashboard /wp-admin3.33 ▲0.0244.74 ▼5.50
Posts /wp-admin/edit.php3.38 ▲0.0245.40 ▲0.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.55 ▲2.73
Media Library /wp-admin/upload.php3.25 ▲0.0238.57 ▲3.20
WP Adminer /wp-admin/tools.php?page=wp-adminer3.2331.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Database Management tool - Adminer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.27 ▼0.171.82 ▲0.1744.53 ▲1.97
Dashboard /wp-admin2,208 ▲315.62 ▲0.0490.86 ▼10.1942.36 ▼2.61
Posts /wp-admin/edit.php2,113 ▲131.99 ▲0.0240.58 ▲2.6735.27 ▼2.37
Add New Post /wp-admin/post-new.php1,532 ▲623.49 ▲0.36666.11 ▼6.9056.97 ▼7.62
Media Library /wp-admin/upload.php1,413 ▲134.20 ▼0.0192.92 ▼16.4541.62 ▼5.05
WP Adminer /wp-admin/tools.php?page=wp-adminer7741.9923.7322.84

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Adminer' not found in wp-content/plugins/pexlechris-adminer/inc/class-pexlechris-adminer.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

pexlechris-adminer/pexlechris-adminer.php Passed 13 tests

The entry point to "Database Management tool - Adminer" version 2.1.1 is a PHP file that has certain tags in its header comment area
63 characters long description:
Manage the database from your WordPress Dashboard using Adminer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,983 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP447691,983

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity12.66
▷ Minimum class complexity1.00
▷ Maximum class complexity219.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes00.00%
▷ Concrete classes41100.00%
▷ Final classes00.00%
Methods274
▷ Static methods00.00%
▷ Public methods274100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions486
▷ Named functions486100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin