83% livejournal-importer

Code Review | LiveJournal Importer

WordPress plugin LiveJournal Importer scored83%from 54 tests.

About plugin

  • Plugin page: livejournal-importer
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Oct 16, 2014
  • Number of updates: 23
  • Update frequency: every 129.4 days
  • Top authors: westi (52.17%)nacin (17.39%)dllh (17.39%)briancolinger (13.04%)Otto42 (8.7%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /490,493 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by LiveJournal Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.85 ▼1.53
Dashboard /wp-admin3.48 ▲0.1451.33 ▼13.30
Posts /wp-admin/edit.php3.60 ▲0.2451.63 ▼3.42
Add New Post /wp-admin/post-new.php6.07 ▲0.18109.75 ▲9.09
Media Library /wp-admin/upload.php3.41 ▲0.1841.25 ▲4.43

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/livejournal-importer/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

LiveJournal Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.60 ▼0.991.73 ▼0.2343.12 ▼1.64
Dashboard /wp-admin2,224 ▲185.86 ▲0.9694.70 ▼14.9740.14 ▼0.25
Posts /wp-admin/edit.php2,100 ▲32.06 ▲0.0439.41 ▲3.5035.13 ▼0.50
Add New Post /wp-admin/post-new.php1,545 ▼923.29 ▲0.11640.63 ▼0.8559.08 ▲4.08
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.03100.79 ▼1.9344.49 ▼4.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livejournal-importer/livejournal-importer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === livejournal-importer === )
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

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

"LiveJournal Importer" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Import posts and comments from LiveJournal.

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
Good job! No executable or dangerous file extensions detected878 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1140110878

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity113.00
▷ Minimum class complexity113.00
▷ Maximum class complexity113.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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