84% cf7-export-csv

Code Review | CF7 EXPORT CSV

WordPress plugin CF7 EXPORT CSV scored84%from 54 tests.

About plugin

  • Plugin page: cf7-export-csv
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2017
  • Latest release: Dec 31, 2017
  • Number of updates: 9
  • Update frequency: every 19.7 days
  • Top authors: imdr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by CF7 EXPORT CSV
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0333.26 ▼9.61
Dashboard /wp-admin3.34 ▲0.0449.18 ▲2.35
Posts /wp-admin/edit.php3.39 ▲0.0349.11 ▲7.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.83 ▲4.55
Media Library /wp-admin/upload.php3.27 ▲0.0336.10 ▼0.38
Export CSV /wp-admin/admin.php?page=cf7_export_csv3.2332.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_cf7_export_csv_db
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7 EXPORT CSV
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.42 ▲0.061.61 ▼0.0838.41 ▼6.61
Dashboard /wp-admin2,222 ▲514.87 ▼0.02110.32 ▼16.8639.90 ▼9.45
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0240.29 ▲0.9440.32 ▲4.96
Add New Post /wp-admin/post-new.php1,557 ▲2418.13 ▼2.97700.67 ▼54.4567.16 ▲12.84
Media Library /wp-admin/upload.php1,404 ▲164.21 ▼0.0397.12 ▼11.9445.03 ▼3.97
Export CSV /wp-admin/admin.php?page=cf7_export_csv8072.0625.1327.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 3× 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/cf7-export-csv/inc/cf7-export-csv-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-export-csv/inc/cf7-export-csv-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-export-csv/inc/cf7-save-data.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: contact, csv export, contact form 7, contact form database, form...

cf7-export-csv/cf7-export-csv.php Passed 13 tests

The entry point to "CF7 EXPORT CSV" version 1.6 is a PHP file that has certain tags in its header comment area
117 characters long description:
CF7 Export CSV is a plugin for storing data of Contact Form 7 forms into the database and exporting data as CSV files

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin230 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34111230

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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
Namespaces0
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin