84% lh-mysqldump

Code Review | LH Mysqldump

WordPress plugin LH Mysqldump scored 84% from 54 tests.

About plugin

  • Plugin page: lh-mysqldump
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: May 18, 2019
  • Latest release: Aug 8, 2022
  • Number of updates: 5
  • Update frequency: every 235.6 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,015 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by LH Mysqldump
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0751.05 ▲4.87
Dashboard /wp-admin3.36 ▲0.0650.58 ▲1.80
Posts /wp-admin/edit.php3.48 ▲0.1249.86 ▲1.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.54 ▼7.33
Media Library /wp-admin/upload.php3.29 ▲0.0636.23 ▲3.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for LH Mysqldump
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.201.88 ▼0.2941.90 ▼1.48
Dashboard /wp-admin2,206 ▲184.85 ▼0.02110.50 ▼3.9641.53 ▼2.49
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0532.96 ▼2.4434.25 ▲1.68
Add New Post /wp-admin/post-new.php1,543 ▲1018.36 ▼4.89632.72 ▼48.0854.26 ▲1.44
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0693.55 ▼16.7641.81 ▼6.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-mysqldump/partials/tools.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
5 plugin tags: database, export, email, sql, mysql

lh-mysqldump/lh-mysqldump.php 92% from 13 tests

Analyzing the main PHP file in "LH Mysqldump" version 1.01
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin458 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP531379458

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity28.33
▷ Minimum class complexity17.00
▷ Maximum class complexity36.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods1754.84%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin