Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/import-excel/functions.php+564
Use of undefined constant price_excel - assumed 'price_excel' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.95MB] [CPU: ▼33.42ms] Passed 4 tests
An overview of server-side resources used by Import Excel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.32 ▼5.56 |
Dashboard /wp-admin | 3.00 ▼0.31 | 23.58 ▼27.15 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 26.22 ▼30.41 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 21.82 ▼67.56 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 23.81 ▼8.54 |
Импорт таблиц /wp-admin/options-general.php?page=price_excel | 3.00 | 22.81 |
Обзор таблиц /wp-admin/options-general.php?page=price_excel_view | 3.00 | 23.92 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_price_excel |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Import Excel: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.27 ▼0.08 | 1.78 ▼0.20 | 44.47 ▼0.20 |
Dashboard /wp-admin | 2,206 ▲29 | 5.60 ▼0.06 | 81.33 ▼21.24 | 37.49 ▼7.61 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▼0.02 | 38.94 ▲3.59 | 36.43 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 22.99 ▼0.38 | 689.75 ▲1.31 | 69.54 ▲14.60 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.20 ▼0.03 | 100.03 ▼4.06 | 45.97 ▲0.13 |
Импорт таблиц /wp-admin/options-general.php?page=price_excel | 814 | 1.70 | 24.73 | 33.32 |
Обзор таблиц /wp-admin/options-general.php?page=price_excel_view | 791 | 2.01 | 24.85 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > 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.
- Zombie tables were found after uninstall: 1 table
- wp_price_excel
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=price_excel_view
- > 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/options-general.php?page=price_excel_view
- > Warning in wp-content/plugins/import-excel/functions.php+141
Use of undefined constant price_excel - assumed 'price_excel' (this will throw an Error in a future version of PHP)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/import-excel/functions.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/import-excel/import_excel.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: xlsx, table, excel, import
import-excel/import_excel.php 92% from 13 tests
This is the main PHP file of "Import Excel" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("import-excel.php" instead of "import_excel.php")
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
Good job! No executable or dangerous file extensions detected644 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 81 | 529 |
JavaScript | 2 | 5 | 1 | 58 |
CSS | 2 | 9 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin