94% export-tables-to-csv

Code Review | Export Tables to CSV

WordPress plugin Export Tables to CSV scored 94% from 54 tests.

About plugin

  • Plugin page: export-tables-to-csv
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.0
  • WordPress version: 5.9.2
  • First release: Aug 10, 2021
  • Latest release: Aug 10, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: iniyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼305.82ms] Passed 4 tests

Server-side resources used by Export Tables to CSV
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.71 ▼5.91
Dashboard /wp-admin3.41 ▲0.0137.58 ▲3.84
Posts /wp-admin/edit.php3.65 ▲0.0142.01 ▲5.17
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.28 ▼1,214.30
Media Library /wp-admin/upload.php3.30 ▲0.0025.21 ▼6.92

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Export Tables to CSV
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.92 ▼0.066.62 ▼0.482.53 ▲0.42
Dashboard /wp-admin2,895 ▲336.12 ▼0.06122.55 ▼41.16163.32 ▼8.70
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0072.39 ▲4.91203.82 ▲57.41
Add New Post /wp-admin/post-new.php1,719 ▲5322.41 ▲1.42452.41 ▲0.08188.74 ▲34.87
Media Library /wp-admin/upload.php1,695 ▲35.53 ▲0.01163.08 ▲22.02222.83 ▲11.91

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/export-tables-to-csv/exporttabletocsv.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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: csv, shortcode, export, table

export-tables-to-csv/exporttabletocsv.php 92% from 13 tests

The main file in "Export Tables to CSV" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("export-tables-to-csv.php" instead of "exporttabletocsv.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
Success! There were no dangerous files found in this plugin43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1131231
PHP121212

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin