10% import-excel

Code Review | Import Excel

WordPress plugin Import Excel scored10%from 54 tests.

About plugin

  • Plugin page: import-excel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Aug 15, 2016
  • Number of updates: 10
  • Update frequency: every 11.6 days
  • Top authors: gans5131 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,738 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.32 ▼5.56
Dashboard /wp-admin3.00 ▼0.3123.58 ▼27.15
Posts /wp-admin/edit.php3.00 ▼0.3626.22 ▼30.41
Add New Post /wp-admin/post-new.php3.00 ▼2.8921.82 ▼67.56
Media Library /wp-admin/upload.php3.00 ▼0.2323.81 ▼8.54
Импорт таблиц /wp-admin/options-general.php?page=price_excel3.0022.81
Обзор таблиц /wp-admin/options-general.php?page=price_excel_view3.0023.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.27 ▼0.081.78 ▼0.2044.47 ▼0.20
Dashboard /wp-admin2,206 ▲295.60 ▼0.0681.33 ▼21.2437.49 ▼7.61
Posts /wp-admin/edit.php2,111 ▲112.01 ▼0.0238.94 ▲3.5936.43 ▲1.09
Add New Post /wp-admin/post-new.php1,542 ▲1622.99 ▼0.38689.75 ▲1.3169.54 ▲14.60
Media Library /wp-admin/upload.php1,411 ▲144.20 ▼0.03100.03 ▼4.0645.97 ▲0.13
Импорт таблиц /wp-admin/options-general.php?page=price_excel8141.7024.7333.32
Обзор таблиц /wp-admin/options-general.php?page=price_excel_view7912.0124.8527.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP24081529
JavaScript25158
CSS29057

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 code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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