73% dbmaker

Code Review | DBMaker

WordPress plugin DBMaker scored73%from 54 tests.

About plugin

  • Plugin page: dbmaker
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Jul 11, 2020
  • Number of updates: 16
  • Update frequency: every 29.9 days
  • Top authors: castanet01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.93ms] Passed 4 tests

Analyzing server-side resources used by DBMaker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.26 ▲0.38
Dashboard /wp-admin3.34 ▲0.0445.24 ▼3.90
Posts /wp-admin/edit.php3.40 ▲0.0548.48 ▼0.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.88 ▼15.09
Media Library /wp-admin/upload.php3.27 ▲0.0535.18 ▼0.06
Add New /wp-admin/post-new.php?post_type=csv3.3643.19
DataBase Maker /wp-admin/edit.php?post_type=csv3.3233.42

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DBMaker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.31 ▼1.074.32 ▲2.6444.21 ▲3.79
Dashboard /wp-admin2,233 ▲415.81 ▲0.8896.08 ▼9.4537.16 ▼5.62
Posts /wp-admin/edit.php2,116 ▲272.05 ▼0.0039.05 ▼0.5434.67 ▼0.10
Add New Post /wp-admin/post-new.php1,556 ▲1423.40 ▲5.29605.53 ▼41.8745.64 ▼6.83
Media Library /wp-admin/upload.php1,409 ▲244.18 ▼0.0197.54 ▼17.1340.76 ▼7.49
Add New /wp-admin/post-new.php?post_type=csv2,6137.57181.7688.46
DataBase Maker /wp-admin/edit.php?post_type=csv1,0801.9833.6830.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=csv
    • > Notice in wp-content/plugins/dbmaker/dbmaker.php+694
    Undefined variable: csv_label_check

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dbmaker/dbmaker.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dbmaker/lib/shortcode.php:187

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: csv, import, database, search

dbmaker/dbmaker.php Passed 13 tests

This is the main PHP file of "DBMaker" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
23 characters long description:
Make data base from csv

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,820 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP51081061,314
JavaScript51316332
Markdown1380120
PO File1181953
CSS1041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.33
▷ Minimum class complexity4.00
▷ Maximum class complexity12.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions31
▷ Named functions2890.32%
▷ Anonymous functions39.68%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin