73% timely-csv-xls-exporter

Code Review | Timely CSV XLS exporter

WordPress plugin Timely CSV XLS exporter scored73%from 54 tests.

About plugin

  • Plugin page: timely-csv-xls-ex...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.8
  • WordPress version: 6.3.1
  • First release: Nov 7, 2016
  • Latest release: Jul 10, 2017
  • Number of updates: 9
  • Update frequency: every 27.4 days
  • Top authors: Virgial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,852 total downloads

Benchmarks

Plugin footprint 65% from 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.10MB] [CPU: ▼6.89ms] Passed 4 tests

This is a short check of server-side resources used by Timely CSV XLS exporter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.38 ▼3.04
Dashboard /wp-admin3.44 ▲0.1047.42 ▼15.07
Posts /wp-admin/edit.php3.56 ▲0.2051.50 ▲0.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.23 ▼10.38
Media Library /wp-admin/upload.php3.37 ▲0.1333.73 ▲1.45
★ Timely Export /wp-admin/options-general.php?page=fatcxe-admin3.3432.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 260 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
fatcxe_last_export
fatcxe_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Timely CSV XLS exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.13 ▼1.221.84 ▲0.1740.32 ▲2.22
Dashboard /wp-admin2,213 ▲284.80 ▼1.01107.55 ▲4.6338.74 ▼4.70
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0640.32 ▼1.2138.08 ▲2.17
Add New Post /wp-admin/post-new.php1,517 ▼1817.71 ▼5.35703.24 ▲5.9254.90 ▼13.58
Media Library /wp-admin/upload.php1,395 ▲104.27 ▼0.0195.23 ▼6.9143.43 ▲1.25
★ Timely Export /wp-admin/options-general.php?page=fatcxe-admin1,3941.8431.7240.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/timely-csv-xls-exporter/includes/class.FATCXESettingsPage.php+71
    rmdir(wp-content/uploads/fatcxe_attachments): Directory not empty
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 101× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/CachedObjectStorage/DiscISAM.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Worksheet_BaseDrawing' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Worksheet/MemoryDrawing.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Style/Border.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Style/Font.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Worksheet_CellIterator' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Worksheet/ColumnCellIterator.php:28
    • > PHP Warning
      Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Autoloader.php on line 70
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Writer/OpenDocument/MetaInf.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Writer/OpenDocument/Mimetype.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Exception' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Calculation/Exception.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Shared_OLE_PPS' not found in wp-content/plugins/timely-csv-xls-exporter/Classes/PHPExcel/Shared/OLE/PPS/Root.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: You should set the name of your plugin on the first line ( === timely-csv-xls-exporter === )
The official readme.txt is a good inspiration

timely-csv-xls-exporter/timely-csv-xls-exporter.php Passed 13 tests

The main PHP file in "Timely CSV XLS exporter" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
This plugin gives you the option to Export serveral post types to Excell or CSV. It's a simple plugin but effective.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin58,724 lines of code in 220 files:
LanguageFilesBlank linesComment linesLines of code
PHP22011,07335,93658,724

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,019)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 387)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity49.77
▷ Minimum class complexity1.00
▷ Maximum class complexity1,019.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity387.00
Code structure
Namespaces0
Interfaces7
Traits0
Classes207
▷ Abstract classes104.83%
▷ Concrete classes19795.17%
▷ Final classes00.00%
Methods2,892
▷ Static methods63121.82%
▷ Public methods2,30079.53%
▷ Protected methods802.77%
▷ Private methods51217.70%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants816
▷ Global constants12214.95%
▷ Class constants69485.05%
▷ Public constants694100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin