84% yoast-seo-settings-xml-csv-import

Code Review | Import Settings into WordPress SEO by Yoast

WordPress plugin Import Settings into WordPress SEO by Yoast scored84%from 54 tests.

About plugin

  • Plugin page: yoast-seo-setting...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 62
  • Update frequency: every 48.0 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

30,000+ active /220,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.98ms] Passed 4 tests

Analyzing server-side resources used by Import Settings into WordPress SEO by Yoast
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2046.95 ▲5.98
Dashboard /wp-admin3.51 ▲0.2152.89 ▲2.01
Posts /wp-admin/edit.php3.62 ▲0.2753.96 ▼3.52
Add New Post /wp-admin/post-new.php6.09 ▲0.21101.78 ▲4.88
Media Library /wp-admin/upload.php3.43 ▲0.2038.62 ▲0.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Import Settings into WordPress SEO by Yoast
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.35 ▲0.151.94 ▲0.3136.71 ▼5.52
Dashboard /wp-admin2,227 ▲505.52 ▼0.0790.71 ▼1.2645.65 ▲3.89
Posts /wp-admin/edit.php2,139 ▲392.03 ▲0.0440.66 ▲3.4844.69 ▲9.57
Add New Post /wp-admin/post-new.php1,402 ▼12421.48 ▼1.40543.68 ▼134.6737.13 ▼27.68
Media Library /wp-admin/upload.php1,435 ▲354.15 ▼0.0396.84 ▼12.0242.22 ▼8.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php on line 13
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: import search engine optimization, yoast seo, search engine optimization, import yoast, import yoast wordpress seo...

yoast-seo-settings-xml-csv-import/yoast-addon.php 92% from 13 tests

The main PHP file in "Import Settings into WordPress SEO by Yoast" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yoast-seo-settings-xml-csv-import.php" instead of "yoast-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23991171,212
Markdown13017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity204.00
▷ Minimum class complexity204.00
▷ Maximum class complexity204.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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 were not PNG files found in your plugin