74% pdq-csv

Code Review | PDQ CSV

WordPress plugin PDQ CSV scored 74% from 54 tests.

About plugin

  • Plugin page: pdq-csv
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.16-5.8
  • WordPress version: 5.8.1
  • First release: Feb 3, 2022
  • Latest release: Feb 3, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: truckersagainsttrafficking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 44 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.08MB] [CPU: ▼172.11ms] Passed 4 tests

A check of server-side resources used by PDQ CSV
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1225.32 ▼1.22
Dashboard /wp-admin2.57 ▼0.4913.63 ▼28.54
Posts /wp-admin/edit.php2.57 ▼0.5312.75 ▼21.98
Add New Post /wp-admin/post-new.php2.57 ▼2.8715.20 ▼625.33
Media Library /wp-admin/upload.php2.57 ▼0.4311.78 ▼12.59
Debug info /wp-admin/admin.php?page=wp-pdq-csv-info3.0427.62
Current exports /wp-admin/admin.php?page=wp-pdq-csv-current-exports3.0520.73
Manage saved export settings /wp-admin/admin.php?page=wp-pdq-csv-manage3.0423.65
Export data /wp-admin/admin.php?page=wp-pdq-csv3.0623.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 65 new files
Database: 2 new tables, 1 new option
New tables
wp_pdqcsv_exports
wp_pdqcsv_saved_export_settings
New WordPress options
pdqcsv_activation_error

Browser metrics Passed 4 tests

An overview of browser requirements for PDQ CSV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲10915.62 ▲0.028.26 ▼2.0670.80 ▼5.81
Dashboard /wp-admin2,974 ▲796.12 ▼0.02113.79 ▼19.32168.15 ▼6.72
Posts /wp-admin/edit.php2,781 ▲413.02 ▼0.2263.59 ▲0.61138.51 ▲5.12
Add New Post /wp-admin/post-new.php3,841 ▲11318.81 ▲0.18432.86 ▼12.50155.47 ▲0.19
Media Library /wp-admin/upload.php1,794 ▲455.49 ▼0.02137.72 ▼7.26186.21 ▲0.67
Debug info /wp-admin/admin.php?page=wp-pdq-csv-info1,2432.4154.69128.77
Current exports /wp-admin/admin.php?page=wp-pdq-csv-current-exports1,1742.6357.13127.12
Manage saved export settings /wp-admin/admin.php?page=wp-pdq-csv-manage1,1522.4153.31132.08
Export data /wp-admin/admin.php?page=wp-pdq-csv1,3374.0491.64126.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/pdq-csv/pdq-csv.php+43
    Undefined index: page
  • The uninstall procedure has failed, leaving 1 option in the database
    • pdqcsv_activation_error

Smoke tests 75% 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/admin.php?page=wp-pdq-csv-current-exports
    • > Notice in wp-content/plugins/pdq-csv/pdq-csv.php+43
    Undefined index: page

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === pdq-csv === )
The official readme.txt is a good inspiration

pdq-csv/pdq-csv.php Passed 13 tests

Analyzing the main PHP file in "PDQ CSV" version 1.0.0
32 characters long description:
A pretty darn quick CSV exporter

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
Everything looks great! No dangerous files found in this plugin2,702 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP222543671,142
JavaScript111712481,040
CSS156213350
HTML7170170

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Namespaces8
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%
Functions75
▷ Named functions5370.67%
▷ Anonymous functions2229.33%
Constants16
▷ Global constants16100.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/jquery-ui/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
vendor/jquery-ui/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
vendor/jquery-ui/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
vendor/jquery-ui/images/ui-icons_cc0000_256x240.png4.51KB4.18KB▼ 7.28%
vendor/jquery-ui/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%