Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▼0.95MB] [CPU: ▼37.28ms] Passed 4 tests
An overview of server-side resources used by CSV Sumotto
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.43 ▼2.21 |
Dashboard /wp-admin | 2.99 ▼0.31 | 25.52 ▼30.24 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 25.99 ▼24.97 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 25.56 ▼81.93 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 25.00 ▼11.98 |
CSV SumoTTo /wp-admin/options-general.php?page=csv_sumotto_settings | 3.00 | 25.78 |
Add New /wp-admin/admin.php?page=csv_sumotto_add_table_menu | 3.00 | 25.98 |
All Tables /wp-admin/admin.php?page=csv_sumotto | 3.00 | 23.36 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_csv_sumotto |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for CSV Sumotto
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.25 ▼0.13 | 1.76 ▼0.26 | 41.63 ▼2.26 |
Dashboard /wp-admin | 2,227 ▲47 | 5.59 ▼0.11 | 91.56 ▲2.57 | 61.94 ▲16.23 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.98 ▼0.08 | 40.20 ▼2.34 | 39.51 ▲3.66 |
Add New Post /wp-admin/post-new.php | 1,566 ▲20 | 23.19 ▼0.00 | 761.23 ▲96.87 | 59.30 ▲1.14 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.24 ▼0.01 | 104.91 ▲4.48 | 75.26 ▲30.89 |
CSV SumoTTo /wp-admin/options-general.php?page=csv_sumotto_settings | 964 | 2.02 | 27.09 | 36.48 |
Add New /wp-admin/admin.php?page=csv_sumotto_add_table_menu | 916 | 2.02 | 25.07 | 29.21 |
All Tables /wp-admin/admin.php?page=csv_sumotto | 860 | 2.03 | 24.95 | 29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 errors were triggered by the plugin
- 26 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csv_sumotto
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csv_sumotto
- > Warning in wp-content/plugins/csv-sumotto/csv_sumotto_tables.php+3
Use of undefined constant csv_sumotto - assumed 'csv_sumotto' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csv_sumotto_add_table_menu
- > Notice in wp-content/plugins/csv-sumotto/csv_sumotto_add_table.php+49
Only variables should be passed by reference
- > GET request to /wp-admin/admin.php?page=csv_sumotto
- > Notice in wp-content/plugins/csv-sumotto/csv_sumotto_all_tables.php+4
Undefined variable: messege
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/csv-sumotto/csv_sumotto_function.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-sumotto/csv_sumotto_all_tables.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/csv-sumotto/csv_sumotto_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-sumotto/csv_sumotto_redactor.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/csv-sumotto/csv_sumotto_tables.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/csv-sumotto/csv_sumotto_tables.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/csv-sumotto/csv_sumotto_add_table.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-sumotto/csv_sumotto_edit_table.php:3
- > PHP Warning
Use of undefined constant csv_sumotto - assumed 'csv_sumotto' (this will throw an Error in a future version of PHP) in wp-content/plugins/csv-sumotto/csv_sumotto_tables.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csv_sumotto
- > Network (severe)
wp-content/plugins/csv-sumotto/images/icon.png%20height=18px%20width=18px - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=csv_sumotto_settings
- > Network (severe)
https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
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
3 plugin tags: excel, csv, table
csv-sumotto/csv_sumotto_function.php 92% from 13 tests
The main PHP script in "CSV Sumotto" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("csv-sumotto.php" instead of "csv_sumotto_function.php")
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
Success! There were no dangerous files found in this plugin913 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 4 | 20 | 673 |
PO File | 1 | 71 | 90 | 163 |
CSS | 1 | 0 | 0 | 76 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wpicons2.png | 11.17KB | 5.00KB | ▼ 55.19% |
images/ico2n.png | 3.55KB | 1.59KB | ▼ 55.25% |
images/88x31_wm_blue_on_transparent_ru.png | 1.41KB | 0.82KB | ▼ 42.15% |
images/icon.png | 1.19KB | 0.77KB | ▼ 35.84% |
images/activcell.png | 0.11KB | 0.11KB | 0.00% |