94% table-builder-for-csv

Code Review | Table Builder for CSV

WordPress plugin Table Builder for CSV scored 94% from 54 tests.

About plugin

  • Plugin page: table-builder-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 5.9.2
  • First release: Sep 5, 2018
  • Latest release: Oct 28, 2019
  • Number of updates: 31
  • Update frequency: every 13.6 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼305.29ms] Passed 4 tests

Analyzing server-side resources used by Table Builder for CSV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0355.83 ▲3.12
Dashboard /wp-admin3.43 ▲0.0233.46 ▲1.86
Posts /wp-admin/edit.php3.66 ▲0.0237.41 ▲1.64
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.76 ▼1,227.30
Media Library /wp-admin/upload.php3.31 ▲0.0225.38 ▲2.63

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Table Builder for CSV
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.88 ▲0.306.32 ▲0.552.23 ▼0.19
Dashboard /wp-admin2,888 ▲276.25 ▲0.06119.10 ▼17.85154.84 ▼7.86
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0166.31 ▲4.86151.61 ▲9.96
Add New Post /wp-admin/post-new.php1,672 ▲420.81 ▲1.29426.80 ▲30.28159.65 ▲4.28
Media Library /wp-admin/upload.php1,698 ▲35.52 ▲0.00149.09 ▲5.75186.04 ▼1.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/table-builder-for-csv/table-builder-for-csv.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
The official readme.txt is a good inspiration

table-builder-for-csv/table-builder-for-csv.php Passed 13 tests

The main PHP file in "Table Builder for CSV" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
The Table Builder for CSV is a simple plugin that creates HTML table from csv file.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected199 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected