84% import-xml-csv-settings-to-all-in-one-seo-pack

Code Review | Import Settings into All In One SEO

WordPress plugin Import Settings into All In One SEO scored84%from 54 tests.

About plugin

  • Plugin page: import-xml-csv-se...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 43
  • Update frequency: every 61.0 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /11,932 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.09MB] [CPU: ▼4.55ms] Passed 4 tests

This is a short check of server-side resources used by Import Settings into All In One SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.11 ▼5.93
Dashboard /wp-admin3.39 ▲0.0950.62 ▲0.01
Posts /wp-admin/edit.php3.51 ▲0.1546.13 ▼5.85
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.56 ▼5.24
Media Library /wp-admin/upload.php3.31 ▲0.0938.17 ▼1.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
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

An overview of browser requirements for Import Settings into All In One SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2614.75 ▲0.391.75 ▼0.1143.96 ▼1.01
Dashboard /wp-admin2,212 ▲325.59 ▼0.0591.82 ▲0.1142.23 ▲1.23
Posts /wp-admin/edit.php2,124 ▲242.01 ▲0.0241.22 ▲3.0034.92 ▼3.77
Add New Post /wp-admin/post-new.php1,563 ▲1623.17 ▲0.09667.18 ▼47.9559.17 ▲5.81
Media Library /wp-admin/upload.php1,417 ▲144.18 ▼0.03106.04 ▼2.6545.94 ▼3.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/import-xml-csv-settings-to-all-in-one-seo-pack/wpai-all-in-one-seo-addon.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: seo, import, search engine optimization, all in one seo, import all in one seo...

import-xml-csv-settings-to-all-in-one-seo-pack/wpai-all-in-one-seo-addon.php 92% from 13 tests

The main PHP script in "Import Settings into All In One SEO" version 2.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("import-xml-csv-settings-to-all-in-one-seo-pack.php" instead of "wpai-all-in-one-seo-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23001371,106
Markdown12014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity113.00
▷ Minimum class complexity17.00
▷ Maximum class complexity209.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods56
▷ Static methods11.79%
▷ Public methods5598.21%
▷ Protected methods11.79%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin