78% post-to-csv

Code Review | Post to CSV by BestWebSoft

WordPress plugin Post to CSV by BestWebSoft scored78%from 54 tests.

About plugin

  • Plugin page: post-to-csv
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Aug 17, 2023
  • Number of updates: 45
  • Update frequency: every 77.0 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /13,541 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.80MB] [CPU: ▲4.46ms] Passed 4 tests

This is a short check of server-side resources used by Post to CSV by BestWebSoft
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.7945.81 ▲0.84
Dashboard /wp-admin4.14 ▲0.8454.77 ▲10.02
Posts /wp-admin/edit.php4.19 ▲0.8453.61 ▲7.34
Add New Post /wp-admin/post-new.php6.68 ▲0.8098.81 ▼0.14
Media Library /wp-admin/upload.php4.00 ▲0.7843.18 ▲9.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 117 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
bstwbsftwppdtplgns_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Post to CSV by BestWebSoft
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.23 ▼1.171.76 ▼0.0843.60 ▼0.21
Dashboard /wp-admin2,242 ▲505.91 ▲1.01106.03 ▼5.0043.60 ▲4.61
Posts /wp-admin/edit.php2,128 ▲392.05 ▲0.0035.77 ▲0.8434.90 ▼0.71
Add New Post /wp-admin/post-new.php1,553 ▲3418.59 ▼4.84649.44 ▲22.1859.70 ▲11.31
Media Library /wp-admin/upload.php1,424 ▲334.19 ▼0.1299.10 ▼0.9043.80 ▲1.27
Settings /wp-admin/post-to-csv.php260.440.0913.60
BWS Panel /wp-admin/post-to-csv.php?page=psttcsv-bws-panel260.440.096.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-csv/bws_menu/class-bws-settings.php:1453
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/post-to-csv/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-to-csv/post-to-csv.php:558
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/post-to-csv/includes/class-psttcsv-settings.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/post-to-csv.php
    • > Network (severe)
    wp-admin/post-to-csv.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-to-csv.php?page=psttcsv-bws-panel
    • > Network (severe)
    wp-admin/post-to-csv.php?page=psttcsv-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Plugin settings page.), #2 (Plugin settings page with enabled "Taxonomies" option.), #3 (Comments Export settings page.)
Please take inspiration from this readme.txt

post-to-csv/post-to-csv.php Passed 13 tests

The entry point to "Post to CSV by BestWebSoft" version 1.4.1 is a PHP file that has certain tags in its header comment area
71 characters long description:
Export WordPress posts to CSV file format easily. Configure data order.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected19,208 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,5865,2187,858
CSS91562515,351
PHP94845735,240
JavaScript638113592
SVG400167

PHP code Passed 2 tests

This is a very shot 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.57
Average class complexity92.67
▷ Minimum class complexity21.00
▷ Maximum class complexity210.00
Average method complexity11.58
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2076.92%
▷ Protected methods00.00%
▷ Private methods623.08%
Functions65
▷ Named functions65100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
63 PNG files occupy 3.07MB with 1.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_75_dadada_1x400.png0.32KB0.16KB▼ 50.46%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_888888_256x240.png6.88KB4.20KB▼ 38.90%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png0.31KB0.18KB▼ 39.81%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png0.31KB0.18KB▼ 39.81%