Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.61MB] [CPU: ▼48.41ms] Passed 4 tests
Analyzing server-side resources used by CSV To DB
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.84 ▲1.74 |
Dashboard /wp-admin | 2.34 ▼1.00 | 11.18 ▼46.70 |
Posts /wp-admin/edit.php | 2.35 ▼1.01 | 11.28 ▼36.47 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 10.29 ▼87.99 |
Media Library /wp-admin/upload.php | 2.35 ▼0.88 | 12.11 ▼22.48 |
CSV To DB /wp-admin/admin.php?page=wp-csv-to-db | 2.35 | 12.10 |
Settings /wp-admin/admin.php?page=wp-csv-to-db-settings | 2.35 | 10.95 |
Fields /wp-admin/admin.php?page=wp-csv-to-db-fields | 2.35 | 9.84 |
Import /wp-admin/admin.php?page=wp-csv-to-db-import | 2.35 | 12.77 |
Server storage [IO: ▲31.43MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 31.43MB)
Filesystem: 309 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
csv2db |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for CSV To DB
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 15.57 ▲1.27 | 1.54 ▼0.26 | 43.62 ▲1.10 |
Dashboard /wp-admin | 2,264 ▲76 | 6.73 ▲1.85 | 153.88 ▲47.60 | 35.92 ▼12.08 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 3.89 ▲1.89 | 53.86 ▲16.76 | 31.52 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,718 ▲204 | 26.50 ▲9.02 | 697.12 ▲1.71 | 28.09 ▼28.95 |
Media Library /wp-admin/upload.php | 1,520 ▲132 | 5.70 ▲1.60 | 117.16 ▲14.06 | 38.24 ▼3.52 |
CSV To DB /wp-admin/admin.php?page=wp-csv-to-db | 815 | 3.49 | 45.85 | 21.53 |
Settings /wp-admin/admin.php?page=wp-csv-to-db-settings | 926 | 3.43 | 45.62 | 24.54 |
Fields /wp-admin/admin.php?page=wp-csv-to-db-fields | 934 | 3.52 | 45.15 | 20.38 |
Import /wp-admin/admin.php?page=wp-csv-to-db-import | 815 | 3.45 | 40.94 | 23.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the a3dd93b0e53c9f6bed8593c07c5048e6 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- csv2db
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the a3dd93b0e53c9f6bed8593c07c5048e6 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 7747e36d993dcb03180d6e3b562a6fd6 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 49580fcfe004144de69a31d70e4b86dc handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 61c12392aa265c17e197c71a14140268 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 13c6b36ab0eb694ea5823e30912fce59 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the e26a4add0a3f5a45a40f20e78f23ea1a handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 43fbdf0befda14aa58e1376719c742f9 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fec63fc99f315558ec2b991ca43d435b handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the 08194decbb3523d2db532032cc6c2f4a handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the e9864f0919d3ddc380c5ec0060fdc610 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-csv-to-db-import
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the d3ef60f427d1dd0ec3dd79cd6906fca0 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CSV2DB\\Options' not found in wp-content/plugins/csv-to-db/src/CSV2DB/Controllers/Front.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/csv-to-db/src/views/items.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/csv-to-db/src/views/fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/csv-to-db/src/views/attachment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_send_json() in wp-content/plugins/csv-to-db/src/views/json.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSV2DB\\Options' not found in wp-content/plugins/csv-to-db/src/CSV2DB/Controllers/Admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/csv-to-db/src/views/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/csv-to-db/src/views/error.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/csv-to-db/src/views/import.php:2
- > PHP Fatal error
Uncaught Error: Class 'CSV2DB\\Base' not found in wp-content/plugins/csv-to-db/src/CSV2DB/Options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== csv-to-db ===
)
csv-to-db/csv-to-db.php 92% from 13 tests
"CSV To DB" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 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
There were no executable files found in this plugin135,594 lines of code in 270 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 194 | 19,375 | 14,574 | 92,284 |
CSS | 42 | 8,680 | 280 | 39,190 |
PHP | 25 | 259 | 638 | 1,825 |
JSON | 5 | 0 | 0 | 1,776 |
Markdown | 2 | 83 | 0 | 334 |
PO File | 1 | 67 | 76 | 157 |
SVG | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 33 | 37.93% |
▷ Public methods | 82 | 94.25% |
▷ Protected methods | 2 | 2.30% |
▷ Private methods | 3 | 3.45% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
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
PNG images were not found in this plugin