99% csv-export-for-click-post

Code Review | CSV Export for Click Post

WordPress plugin CSV Export for Click Post scored 99% from 54 tests.

About plugin

  • Plugin page: csv-export-for-cl...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.1.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.4
  • WordPress version: 5.8.1
  • First release: Feb 19, 2020
  • Latest release: Mar 7, 2020
  • Number of updates: 8
  • Update frequency: every 2.1 days
  • Top authors: hatchbitco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 425 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by CSV Export for Click Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.04 ▲12.61
Dashboard /wp-admin3.06 ▲0.0138.70 ▼4.52
Posts /wp-admin/edit.php3.12 ▲0.0041.23 ▼5.22
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.91 ▼549.11
Media Library /wp-admin/upload.php3.01 ▲0.0034.11 ▲1.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

CSV Export for Click Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.94 ▼0.079.46 ▼1.4046.05 ▼5.32
Dashboard /wp-admin2,973 ▲395.84 ▼0.13145.17 ▲0.23112.96 ▲1.06
Posts /wp-admin/edit.php2,736 ▼32.70 ▼0.0164.39 ▼0.0697.54 ▲4.01
Add New Post /wp-admin/post-new.php1,498 ▼37418.84 ▼0.44373.91 ▼7.81117.59 ▲6.90
Media Library /wp-admin/upload.php1,810 ▲35.04 ▲0.03153.64 ▲1.84123.91 ▲1.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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


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:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
You can look at the official readme.txt

csv-export-for-click-post/Clickpost.php 85% from 13 tests

This is the main PHP file of "CSV Export for Click Post" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("csv-export-for-click-post.php" instead of "Clickpost.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
No dangerous file extensions were detected392 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.36KB8.73KB▼ 60.98%