83% convert-data

Code Review | Convert Data

WordPress plugin Convert Data scored83%from 54 tests.

About plugin

  • Plugin page: convert-data
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 32
  • Update frequency: every 76.7 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,561 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.93ms] Passed 4 tests

Analyzing server-side resources used by Convert Data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.22 ▼1.23
Dashboard /wp-admin3.44 ▲0.1446.12 ▼2.83
Posts /wp-admin/edit.php3.49 ▲0.1446.78 ▼0.91
Add New Post /wp-admin/post-new.php6.02 ▲0.1483.08 ▼14.74
Media Library /wp-admin/upload.php3.37 ▲0.1437.00 ▲0.80
Post IDs /wp-admin/admin.php?page=convert-data-output-post-ids3.3329.83
Categories /wp-admin/admin.php?page=convert-data-output-categories3.3329.13
Setting /wp-admin/admin.php?page=convert-data3.3332.59
Posts /wp-admin/admin.php?page=convert-data-output-posts3.3633.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 19 new options
New WordPress options
convert_data_view_source_posts_ids
convert_data_custom_field_3
convert_data_view_source_categories
widget_recent-posts
widget_recent-comments
convert_data_custom_field_5
convert_data_view_just_parent
convert_data_categories_exclude
convert_data_view_source_posts_info
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Convert Data: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲12714.37 ▼0.011.79 ▼0.3341.09 ▼4.60
Dashboard /wp-admin2,240 ▲694.87 ▼0.01108.68 ▲2.8186.82 ▲36.20
Posts /wp-admin/edit.php2,132 ▲432.00 ▼0.0235.97 ▼3.9930.90 ▼2.19
Add New Post /wp-admin/post-new.php1,548 ▲2823.07 ▼0.32753.19 ▲144.2260.33 ▲4.49
Media Library /wp-admin/upload.php1,425 ▲344.13 ▼0.05102.64 ▲6.2669.06 ▲26.92
Post IDs /wp-admin/admin.php?page=convert-data-output-post-ids8362.0224.3325.09
Categories /wp-admin/admin.php?page=convert-data-output-categories8372.0225.2224.25
Setting /wp-admin/admin.php?page=convert-data9902.2126.6727.96
Posts /wp-admin/admin.php?page=convert-data-output-posts8372.0223.9225.88

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
Please fix the following items
  • The uninstall procedure has failed, leaving 19 options in the database
    • convert_data_categories_exclude
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • convert_data_custom_field_4
    • convert_data_custom_field_5
    • convert_data_view_just_parent
    • convert_data_view_source_categories
    • convert_data_view_source_posts_ids
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/convert-data/index.php:21

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #2 is required in convert-data/assets to your readme.txt
The official readme.txt might help

convert-data/index.php 85% from 13 tests

The primary PHP file in "Convert Data" version 2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("convert-data.php" instead of "index.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin731 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48117652
PO File1283279

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png35.38KB13.02KB▼ 63.20%
images/convert_data.png0.70KB0.72KB0.00%
screenshot-2.png126.14KB50.83KB▼ 59.70%