84% themeinwp-import-companion

Code Review | ThemeinWP Import Companion

WordPress plugin ThemeinWP Import Companion scored84%from 54 tests.

About plugin

  • Plugin page: themeinwp-import-...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 5, 2020
  • Latest release: Dec 22, 2022
  • Number of updates: 10
  • Update frequency: every 83.9 days
  • Top authors: themeinwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /83,753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▲102.41ms] Passed 4 tests

Analyzing server-side resources used by ThemeinWP Import Companion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.14155.15 ▲115.48
Dashboard /wp-admin3.43 ▲0.08142.11 ▲81.75
Posts /wp-admin/edit.php3.48 ▲0.12156.41 ▲108.59
Add New Post /wp-admin/post-new.php5.95 ▲0.06221.60 ▲118.24
Media Library /wp-admin/upload.php3.29 ▲0.06135.66 ▲103.81

Server storage [IO: ▲0.01MB] [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
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ThemeinWP Import Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.14 ▼0.481.78 ▲0.1141.85 ▼1.90
Dashboard /wp-admin2,216 ▲425.62 ▲0.0690.60 ▲3.4139.69 ▲2.30
Posts /wp-admin/edit.php2,122 ▲221.98 ▲0.0140.47 ▲3.3036.29 ▲0.49
Add New Post /wp-admin/post-new.php1,540 ▲1420.78 ▼2.42674.61 ▲45.3049.94 ▼1.97
Media Library /wp-admin/upload.php1,418 ▲184.18 ▼0.02102.92 ▲8.2247.45 ▲4.27

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/themeinwp-import-companion/themeinwp-import-companion.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: plugin, settings, theme import, advanced demo import, import...

themeinwp-import-companion/themeinwp-import-companion.php Passed 13 tests

The main PHP script in "ThemeinWP Import Companion" version 1.0.8 is automatically included on every request by WordPress
39 characters long description:
The plugin simply store data to import.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26926190

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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