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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.26 ▲0.38 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.24 ▼3.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.48 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.88 ▼15.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.18 ▼0.06 |
Add New /wp-admin/post-new.php?post_type=csv | 3.36 | 43.19 |
DataBase Maker /wp-admin/edit.php?post_type=csv | 3.32 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.31 ▼1.07 | 4.32 ▲2.64 | 44.21 ▲3.79 |
Dashboard /wp-admin | 2,233 ▲41 | 5.81 ▲0.88 | 96.08 ▼9.45 | 37.16 ▼5.62 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▼0.00 | 39.05 ▼0.54 | 34.67 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.40 ▲5.29 | 605.53 ▼41.87 | 45.64 ▼6.83 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.18 ▼0.01 | 97.54 ▼17.13 | 40.76 ▼7.49 |
Add New /wp-admin/post-new.php?post_type=csv | 2,613 | 7.57 | 181.76 | 88.46 |
DataBase Maker /wp-admin/edit.php?post_type=csv | 1,080 | 1.98 | 33.68 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 108 | 106 | 1,314 |
JavaScript | 5 | 13 | 16 | 332 |
Markdown | 1 | 38 | 0 | 120 |
PO File | 1 | 18 | 19 | 53 |
CSS | 1 | 0 | 4 | 1 |
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 code | 0.40 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 31 | |
▷ Named functions | 28 | 90.32% |
▷ Anonymous functions | 3 | 9.68% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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