84% twig-anything-csv

Code Review | CSV Format

WordPress plugin CSV Format scored84%from 54 tests.

About plugin

  • Plugin page: twig-anything-csv
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Aug 14, 2015
  • Number of updates: 10
  • Update frequency: every 1.8 days
  • Top authors: meglio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by CSV Format
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.84 ▼1.59
Dashboard /wp-admin3.31 ▼0.0348.56 ▼17.88
Posts /wp-admin/edit.php3.36 ▲0.0147.79 ▲0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.84 ▼2.42
Media Library /wp-admin/upload.php3.23 ▲0.0139.71 ▲4.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CSV Format
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.15 ▼0.371.66 ▼0.2441.65 ▼2.08
Dashboard /wp-admin2,195 ▲185.64 ▼0.0189.33 ▼7.1842.52 ▼1.61
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0334.09 ▼4.0437.66 ▲4.05
Add New Post /wp-admin/post-new.php1,526 ▼223.72 ▲0.63680.70 ▲24.9563.27 ▲14.19
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.04103.87 ▼2.3248.22 ▼0.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/twig-anything-csv/TwigAnythingCSV.php
    • > /wp-content/plugins/twig-anything-csv/twig-anything-csv.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
The official readme.txt might help

twig-anything-csv/twig-anything-csv.php 92% from 13 tests

The main file in "CSV Format" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22415101
JSX18085
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin