83% blogger-importer

Code Review | Blogger Importer

WordPress plugin Blogger Importer scored83%from 54 tests.

About plugin

  • Plugin page: blogger-importer
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Aug 20, 2023
  • Number of updates: 78
  • Update frequency: every 62.1 days
  • Top authors: Otto42 (41.03%)Workshopshed (34.62%)nacin (7.69%)dllh (6.41%)githubsync (5.13%)

Code review

54 tests

User reviews

52 reviews

Install metrics

80,000+ active /2,139,017 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.67ms] 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 /3.57 ▲0.1137.09 ▼5.99
Dashboard /wp-admin3.42 ▲0.0746.09 ▼16.38
Posts /wp-admin/edit.php3.53 ▲0.1743.20 ▼5.10
Add New Post /wp-admin/post-new.php6.00 ▲0.1191.12 ▼3.20
Media Library /wp-admin/upload.php3.34 ▲0.1133.70 ▼1.64

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: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

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 /2,789 ▲314.35 ▼0.021.68 ▼0.0739.81 ▼1.21
Dashboard /wp-admin2,195 ▲155.53 ▼0.1481.39 ▼6.2137.28 ▼9.55
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0336.14 ▼1.1036.12 ▼1.05
Add New Post /wp-admin/post-new.php1,526 ▼423.02 ▲0.11641.39 ▼45.7354.00 ▼0.11
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0295.16 ▼7.9143.00 ▼3.23

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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: Call to undefined function delete_option() in wp-content/plugins/blogger-importer/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Item' not found in wp-content/plugins/blogger-importer/blogger-importer-blogitem.php:25

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 90% 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:
  • Screenshots: Add descriptions for screenshots #1, #2 in blogger-importer/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

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

The main PHP file in "Blogger Importer" ver. 0.9.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 detected932 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6238264932

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.30
Average class complexity28.60
▷ Minimum class complexity7.00
▷ Maximum class complexity93.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.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