78% custom-csv-exporter

Code Review | Custom CSV Export Plugin

WordPress plugin Custom CSV Export Plugin scored78%from 54 tests.

About plugin

  • Plugin page: custom-csv-exporter
  • Plugin version: .2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 36
  • Update frequency: every 1.0 days
  • Top authors: mburtis (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /8,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.18ms] Passed 4 tests

Analyzing server-side resources used by Custom CSV Export Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.60 ▼6.09
Dashboard /wp-admin3.35 ▲0.0052.28 ▼19.43
Posts /wp-admin/edit.php3.40 ▲0.0453.13 ▼3.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.50 ▼18.87
Media Library /wp-admin/upload.php3.28 ▲0.0437.41 ▼4.33
Custom CSV /wp-admin/options-general.php?page=wp_ccsve_template3.2333.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Custom CSV Export Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.23 ▼0.071.97 ▲0.1344.02 ▼0.31
Dashboard /wp-admin2,196 ▲195.49 ▼0.1488.87 ▼11.9841.03 ▼7.10
Posts /wp-admin/edit.php2,101 ▲11.99 ▲0.0038.98 ▲0.0335.22 ▼3.97
Add New Post /wp-admin/post-new.php1,529 ▲323.56 ▲0.52694.13 ▲26.9055.05 ▼13.38
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.1098.13 ▼15.6042.49 ▼3.60
Custom CSV /wp-admin/options-general.php?page=wp_ccsve_template6971.127.7020.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp_ccsve_template
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/custom-csv-exporter/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/custom-csv-exporter/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/custom-csv-exporter/settings.php(118): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WP_CCSVE_Settings->plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-csv-exporter/wp_ccsve.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-csv-exporter/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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 require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === custom-csv-exporter === )
You can look at the official readme.txt

custom-csv-exporter/wp_ccsve.php 85% from 13 tests

This is the main PHP file of "Custom CSV Export Plugin" version .2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-csv-exporter.php" instead of "wp_ccsve.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of ".2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin211 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45473211

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin