10% listly

Code Review | Listly: Listicles For Wordpress

WordPress plugin Listly: Listicles For Wordpress scored10%from 54 tests.

About plugin

  • Plugin page: listly
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Sep 19, 2011
  • Latest release: Sep 22, 2017
  • Number of updates: 223
  • Update frequency: every 9.9 days
  • Top authors: listly (74.89%)milanmk (25.11%)

Code review

54 tests

User reviews

13 reviews

Install metrics

800+ active /44,894 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/listly/listly.php+88
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.55MB] [CPU: ▼51.10ms] Passed 4 tests

Server-side resources used by Listly: Listicles For Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.44 ▼1.025.88 ▼36.44
Dashboard /wp-admin2.46 ▼0.857.29 ▼40.49
Posts /wp-admin/edit.php2.46 ▼0.907.59 ▼41.64
Add New Post /wp-admin/post-new.php2.46 ▼3.436.48 ▼85.82
Media Library /wp-admin/upload.php2.46 ▼0.776.31 ▼31.57
Listly /wp-admin/options-general.php?page=Listly2.467.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_listly-widget
widget_recent-comments
widget_theysaidso_widget
Listly
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Listly: Listicles For Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.26 ▼1.115.20 ▲3.5341.59 ▲0.84
Dashboard /wp-admin2,216 ▲284.86 ▼0.02108.03 ▼0.5948.93 ▲5.67
Posts /wp-admin/edit.php2,101 ▲91.99 ▼0.0140.18 ▲1.5237.84 ▲0.46
Add New Post /wp-admin/post-new.php6,231 ▲4,71226.06 ▲2.95936.32 ▲223.5151.48 ▼15.29
Media Library /wp-admin/upload.php1,404 ▲164.30 ▲0.08103.46 ▼12.4245.29 ▼1.11
Listly /wp-admin/options-general.php?page=Listly1,8382.5575.8637.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/listly/listly.php+90
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • db_upgraded
    • Listly
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_listly-widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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=Listly
    • > Deprecated in wp-content/plugins/listly/listly.php+90
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > 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.
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+382
    Undefined index: text_color
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+391
    Undefined index: text_font
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+401
    Undefined index: title_color
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+410
    Undefined index: title_font
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+420
    Undefined index: border_color
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+429
    Undefined index: link_color
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+447
    Undefined index: secondary_link_color
    • > GET request to /wp-admin/options-general.php?page=Listly
    • > Notice in wp-content/plugins/listly/listly.php+456
    Undefined index: separator_color

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/listly/listly.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 35 tag instead of maximum 10
The official readme.txt is a good inspiration

listly/listly.php Passed 13 tests

The main PHP script in "Listly: Listicles For Wordpress" version 2.7 is automatically included on every request by WordPress
129 characters long description:
Brings the power of the Listly platform to engage your audience with list posts in gallery, slideshow, magazine, and list layouts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,326 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1263341,030
JavaScript1334166
CSS1170130

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity79.00
▷ Minimum class complexity50.00
▷ Maximum class complexity108.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/shortcode.png2.37KB0.43KB▼ 81.97%