83% seo-data-transporter

Code Review | SEO Data Transporter

WordPress plugin SEO Data Transporter scored83%from 54 tests.

About plugin

  • Plugin page: seo-data-transporter
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-6.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2010
  • Latest release: Aug 7, 2023
  • Number of updates: 35
  • Update frequency: every 135.5 days
  • Top authors: nathanrice (80%)studiopress (20%)Nick_theGeek (5.71%)

Code review

54 tests

User reviews

31 reviews

Install metrics

4,000+ active /164,042 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.07MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by SEO Data Transporter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.29 ▼4.72
Dashboard /wp-admin3.38 ▲0.0745.77 ▼6.69
Posts /wp-admin/edit.php3.49 ▲0.1347.01 ▲0.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.69 ▲12.12
Media Library /wp-admin/upload.php3.30 ▲0.0733.98 ▼1.22
Convert SEO Data /wp-admin/tools.php?page=seodt3.2731.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SEO Data Transporter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.081.80 ▼0.1743.64 ▼0.45
Dashboard /wp-admin2,204 ▲164.86 ▼1.00110.04 ▼7.4039.28 ▼3.55
Posts /wp-admin/edit.php2,096 ▲72.14 ▲0.1239.54 ▲0.2035.84 ▼0.26
Add New Post /wp-admin/post-new.php1,545 ▲2618.55 ▼4.55638.33 ▼47.8752.21 ▼7.37
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0691.63 ▼23.2640.52 ▼8.20
Convert SEO Data /wp-admin/tools.php?page=seodt9952.0225.8526.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-data-transporter/plugin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-data-transporter/seo-data-transporter.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/seo-data-transporter/includes/class-seo-data-transporter-cli.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/seo-data-transporter/includes/views/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === seo-data-transporter === )
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Screenshot #1 (The SEO Data Transporter UI, including the dropdown with all the supported platforms) image not found
The official readme.txt is a good inspiration

seo-data-transporter/plugin.php 85% from 13 tests

"SEO Data Transporter" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("seo-data-transporter.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)

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
Success! There were no dangerous files found in this plugin565 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8206412485
JSON20058
YAML13019
Markdown1203

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png88.91KB22.01KB▼ 75.24%