72% linickx-lifestream

Code Review | LINICKX LifeStream

WordPress plugin LINICKX LifeStream scored72%from 54 tests.

About plugin

  • Plugin page: linickx-lifestream
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.2.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2009
  • Latest release: Sep 25, 2011
  • Number of updates: 26
  • Update frequency: every 37.2 days
  • Top authors: linickx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.18MB] [CPU: ▼18.27ms] Passed 4 tests

An overview of server-side resources used by LINICKX LifeStream
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.52 ▼7.09
Dashboard /wp-admin3.19 ▼0.1532.16 ▼34.36
Posts /wp-admin/edit.php3.26 ▼0.1036.40 ▼12.44
Add New Post /wp-admin/post-new.php5.44 ▼0.4482.93 ▼19.19
Media Library /wp-admin/upload.php3.20 ▼0.0334.10 ▼2.17
LifeStream /wp-admin/options-general.php?page=lnx_lifestream3.1629.14

Server storage [IO: ▲0.10MB] [DB: ▲0.03MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by LINICKX LifeStream
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.59 ▼0.5446.27 ▲2.44
Dashboard /wp-admin2,204 ▲136.03 ▲1.13102.60 ▼0.9837.86 ▼6.59
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0441.08 ▲3.9935.17 ▼0.95
Add New Post /wp-admin/post-new.php1,536 ▲823.42 ▲0.30657.72 ▼26.1659.37 ▼2.37
Media Library /wp-admin/upload.php1,392 ▲74.32 ▲0.1093.73 ▼7.1239.85 ▼6.45
LifeStream /wp-admin/options-general.php?page=lnx_lifestream1,2832.2023.4736.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > Notice in wp-content/plugins/linickx-lifestream/admin/main.php+95
    Trying to access array offset on value of type bool
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > User deprecated in wp-includes/functions.php+5453
    Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > Notice in wp-content/plugins/linickx-lifestream/admin/main.php+95
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > Notice in wp-content/plugins/linickx-lifestream/admin/main.php+148
    Undefined variable: update_cron_status
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > Notice in wp-content/plugins/linickx-lifestream/admin/main.php+172
    Undefined variable: feeddb_file_status
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lnx_lifestream
    • > Notice in wp-content/plugins/linickx-lifestream/admin/main.php+188
    Undefined index: donate

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/linickx-lifestream/admin/help.inc.php
    • > /wp-content/plugins/linickx-lifestream/admin/resetsure.php
    • > /wp-content/plugins/linickx-lifestream/run.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: WPDIR in wp-content/plugins/linickx-lifestream/run.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/linickx-lifestream/admin/reset.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/linickx-lifestream/admin/showdb.php:9
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/linickx-lifestream/admin/resetsure.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/linickx-lifestream/lnx_lifestream.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linickx-lifestream/admin.php:4
    • > PHP Notice
      Undefined variable: WPDIR in wp-content/plugins/linickx-lifestream/run.php on line 27
    • > PHP Warning
      include_once(): Failed opening 'WP_PLUGIN_DIR/linickx-lifestream/uninstall.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/linickx-lifestream/admin/resetsure.php on line 8
    • > PHP Warning
      include_once(WP_PLUGIN_DIR/linickx-lifestream/uninstall.php): failed to open stream: No such file or directory in wp-content/plugins/linickx-lifestream/admin/resetsure.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/linickx-lifestream/admin/showurls.php:10

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === linickx-lifestream === )
  • Screenshots: Screenshot #1 (The Admin interface, where you set up the magic !) image required
You can take inspiration from this readme.txt

linickx-lifestream/lnx_lifestream.php 92% from 13 tests

"LINICKX LifeStream" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("linickx-lifestream.php" instead of "lnx_lifestream.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected745 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11238138745

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.23KB20.28KB▼ 62.60%
admin/donate.png10.26KB4.27KB▼ 58.36%