84% import-xml-csv-settings-to-rank-math-seo

Code Review | Import Settings into WordPress SEO Plugin – Rank Math

WordPress plugin Import Settings into WordPress SEO Plugin – Rank Math scored84%from 54 tests.

About plugin

  • Plugin page: import-xml-csv-se...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Aug 10, 2023
  • Number of updates: 16
  • Update frequency: every 67.9 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /10,252 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.58MB] [CPU: ▲1.25ms] Passed 4 tests

Server-side resources used by Import Settings into WordPress SEO Plugin – Rank Math
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.93 ▲0.78
Dashboard /wp-admin4.11 ▲0.8150.15 ▼4.75
Posts /wp-admin/edit.php4.16 ▲0.8057.31 ▲10.73
Add New Post /wp-admin/post-new.php6.63 ▲0.7498.41 ▼0.52
Media Library /wp-admin/upload.php3.97 ▲0.7444.66 ▲9.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Import Settings into WordPress SEO Plugin – Rank Math
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9913.40 ▼0.975.58 ▲3.3148.87 ▲4.57
Dashboard /wp-admin2,262 ▲744.84 ▼0.03108.92 ▲4.1145.52 ▼1.25
Posts /wp-admin/edit.php2,148 ▲592.01 ▼0.0037.86 ▼1.2948.82 ▲16.86
Add New Post /wp-admin/post-new.php1,561 ▲4722.83 ▲5.42556.24 ▼105.6836.49 ▼8.49
Media Library /wp-admin/upload.php1,447 ▲564.16 ▼0.1098.62 ▼1.0244.61 ▲1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-xml-csv-settings-to-rank-math-seo/wpai-rank-math-seo-add-on.php:207

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: import rankmath wordpress seo, seo, import search engine optimization, import seo, rankmath seo...

import-xml-csv-settings-to-rank-math-seo/wpai-rank-math-seo-add-on.php 92% from 13 tests

Analyzing the main PHP file in "Import Settings into WordPress SEO Plugin – Rank Math" version 1.1
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("import-xml-csv-settings-to-rank-math-seo.php" instead of "wpai-rank-math-seo-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,460 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP65812782,257
JavaScript15238203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity65.67
▷ Minimum class complexity9.00
▷ Maximum class complexity221.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods76
▷ Static methods11.32%
▷ Public methods6788.16%
▷ Protected methods11.32%
▷ Private methods810.53%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin