83% custom-table-csv-export-with-filters

Code Review | Custom Table CSV Export With Filters

WordPress plugin Custom Table CSV Export With Filters scored83%from 54 tests.

About plugin

  • Plugin page: custom-table-csv-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 6, 2023
  • Latest release: Feb 6, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: wpteamindianic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /132 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.07ms] Passed 4 tests

An overview of server-side resources used by Custom Table CSV Export With Filters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.49 ▼1.72
Dashboard /wp-admin3.35 ▲0.0150.36 ▼21.03
Posts /wp-admin/edit.php3.46 ▲0.1149.79 ▲2.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.53 ▼4.43
Media Library /wp-admin/upload.php3.27 ▲0.0535.33 ▼1.11

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_customers
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Table CSV Export With Filters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.57 ▼0.781.81 ▲0.1145.30 ▲0.94
Dashboard /wp-admin2,232 ▲415.86 ▲0.9697.77 ▼12.4638.83 ▼3.80
Posts /wp-admin/edit.php2,112 ▲201.99 ▼0.0340.30 ▲3.2739.50 ▲3.61
Add New Post /wp-admin/post-new.php1,543 ▲1018.20 ▼5.29613.68 ▼38.9361.91 ▲6.66
Media Library /wp-admin/upload.php1,408 ▲204.25 ▲0.0499.60 ▼5.0044.29 ▼0.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-table-csv-export-with-filters/admin/partials/custom-table-csv-admin-display.php on line 18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/custom-table-csv-export-with-filters/admin/partials/custom-table-csv-admin-display.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-table-csv-export-with-filters/admin/partials/custom-table-csv-admin-display.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

custom-table-csv-export-with-filters/custom-table-csv.php 85% from 13 tests

The main file in "Custom Table CSV Export With Filters" 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-table-csv-export-with-filters.php" instead of "custom-table-csv.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
Everything looks great! No dangerous files found in this plugin2,166 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP115208002,066
CSS17442
JavaScript112736
Markdown110022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity46.00
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods125
▷ Static methods32.40%
▷ Public methods10382.40%
▷ Protected methods1612.80%
▷ Private methods64.80%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin