10% blogger-importer

Code Review | Blogger Importer

WordPress plugin Blogger Importer scored 10% from 54 tests.

About plugin

  • Plugin page: blogger-importer
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: May 20, 2010
  • Latest release: Apr 3, 2017
  • Number of updates: 75
  • Update frequency: every 39.7 days
  • Top authors: Otto42 (42.67%)Workshopshed (36%)nacin (8%)dllh (6.67%)ryan (5.33%)

Code review

54 tests

User reviews

50 reviews

Install metrics

90,000+ active / 1,762,275 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/blogger-importer/blogger-importer.php+44
    Methods with the same name as their class will not be constructors in a future version of PHP; Blogger_Importer has a deprecated constructor

Server metrics [RAM: ▼1.61MB] [CPU: ▼185.84ms] Passed 4 tests

This is a short check of server-side resources used by Blogger Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼0.705.89 ▼15.33
Dashboard /wp-admin2.04 ▼1.026.48 ▼39.09
Posts /wp-admin/edit.php2.04 ▼1.077.02 ▼35.95
Add New Post /wp-admin/post-new.php2.04 ▼3.395.84 ▼642.34
Media Library /wp-admin/upload.php2.04 ▼0.966.44 ▼25.99

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Blogger Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.77 ▲0.268.31 ▲0.9448.08 ▼1.59
Dashboard /wp-admin2,973 ▲395.88 ▼0.07135.87 ▼11.96114.28 ▲0.43
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0264.74 ▲2.4087.11 ▼2.66
Add New Post /wp-admin/post-new.php1,672 ▲17418.75 ▼0.10351.85 ▼27.72107.45 ▼3.22
Media Library /wp-admin/upload.php1,813 ▲35.03 ▼0.02158.59 ▲7.67117.57 ▲2.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/blogger-importer/blogger-importer.php+44
    Methods with the same name as their class will not be constructors in a future version of PHP; Blogger_Importer has a deprecated constructor

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Sanitize' not found in wp-content/plugins/blogger-importer/blogger-importer-sanitize.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Item' not found in wp-content/plugins/blogger-importer/blogger-importer-blogitem.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/blogger-importer/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add descriptions for screenshots #1, #2 in blogger-importer/assets to your readme.txt
The official readme.txt might help

blogger-importer/blogger-importer.php Passed 13 tests

The main PHP file in "Blogger Importer" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Import posts, comments, and categories from a Blogger blog and migrate authors to WordPress users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected915 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6239265915

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity28.40
▷ Minimum class complexity7.00
▷ Maximum class complexity92.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
No PNG images were found in this plugin