84% options-importer

Code Review | WP Options Importer

WordPress plugin WP Options Importer scored84%from 54 tests.

About plugin

  • Plugin page: options-importer
  • Plugin version: 7...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Mar 3, 2023
  • Number of updates: 8
  • Update frequency: every 404.8 days
  • Top authors: mboynes (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

9,000+ active /83,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.64ms] Passed 4 tests

A check of server-side resources used by WP Options Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.06 ▲1.25
Dashboard /wp-admin3.41 ▲0.0645.54 ▼10.88
Posts /wp-admin/edit.php3.52 ▲0.1646.68 ▼0.58
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.19 ▼5.99
Media Library /wp-admin/upload.php3.33 ▲0.1034.10 ▼1.12

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

Filesystem and database footprint
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
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Options Importer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.331.62 ▼0.0438.88 ▼2.51
Dashboard /wp-admin2,195 ▲155.57 ▼0.0988.59 ▼1.7741.48 ▲3.06
Posts /wp-admin/edit.php2,103 ▲61.95 ▼0.0838.26 ▲3.7839.06 ▲3.08
Add New Post /wp-admin/post-new.php1,538 ▲718.40 ▼4.71599.06 ▼84.2665.16 ▲13.62
Media Library /wp-admin/upload.php1,400 ▲64.17 ▼0.0295.77 ▼6.8541.90 ▼3.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/options-importer/options-importer.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: import, export, importer, migrate, wp_options...

options-importer/options-importer.php 92% from 13 tests

The main PHP file in "WP Options Importer" ver. 7... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "7...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected580 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132249580

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods1659.26%
▷ Protected methods00.00%
▷ Private methods1140.74%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin