84% gp-format-csv

Code Review | CSV Format for GlotPress

WordPress plugin CSV Format for GlotPress scored 84% from 54 tests.

About plugin

  • Plugin page: gp-format-csv
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2022
  • Latest release: Nov 22, 2022
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: pedromendonca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 812 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.25ms] Passed 4 tests

Server-side resources used by CSV Format for GlotPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.59 ▼0.88
Dashboard /wp-admin3.32 ▲0.0243.32 ▼4.48
Posts /wp-admin/edit.php3.37 ▲0.0250.52 ▲3.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.11 ▼12.91
Media Library /wp-admin/upload.php3.25 ▲0.0231.77 ▼6.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CSV Format for GlotPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.66 ▼0.721.68 ▼0.2541.72 ▼2.69
Dashboard /wp-admin2,206 ▲154.87 ▲0.01110.95 ▲10.1039.88 ▼4.44
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0138.87 ▲3.3135.01 ▲0.88
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.73614.07 ▼55.1453.21 ▼7.48
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0792.65 ▼23.4940.21 ▼8.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'GP_Format' not found in wp-content/plugins/gp-format-csv/includes/class-gp-format-csv.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: csv, wordpress, i18n, glotpress, l10n

gp-format-csv/gp-format-csv.php Passed 13 tests

This is the main PHP file of "CSV Format for GlotPress" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Adds the CSV format to GlotPress to export/import translations and originals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin357 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3126265308
PO File1111649

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity8.12
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin