84% livejournal-shortcode

Code Review | LiveJournal Shortcode

WordPress plugin LiveJournal Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: livejournal-short...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Apr 19, 2014
  • Number of updates: 13
  • Update frequency: every 29.2 days
  • Top authors: dmonnier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,074 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.94ms] Passed 4 tests

Server-side resources used by LiveJournal Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.57 ▼4.86
Dashboard /wp-admin3.31 ▲0.0050.04 ▼2.44
Posts /wp-admin/edit.php3.36 ▲0.0047.62 ▲1.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.23 ▼5.19
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲0.74

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

LiveJournal Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.26 ▼1.141.84 ▼0.0041.27 ▼2.24
Dashboard /wp-admin2,205 ▲175.83 ▼0.0298.11 ▼16.1338.60 ▼9.10
Posts /wp-admin/edit.php2,094 ▲52.02 ▲0.0134.76 ▲0.1533.58 ▼1.08
Add New Post /wp-admin/post-new.php1,532 ▼123.43 ▲0.06670.90 ▲13.0957.01 ▼5.22
Media Library /wp-admin/upload.php1,393 ▲54.20 ▲0.0296.60 ▼14.7544.67 ▼2.72

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Everything seems fine, however this is by no means 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
Please fix the following
  • 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-shortcode/Shortcode-LiveJournal.php:46

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

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: livejournal, shortcode

livejournal-shortcode/Shortcode-LiveJournal.php 92% from 13 tests

Analyzing the main PHP file in "LiveJournal Shortcode" version 1.1.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("livejournal-shortcode.php" instead of "Shortcode-LiveJournal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191523
CSS14022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin