10% list-plugins

Code Review | List Plugins

WordPress plugin List Plugins scored10%from 54 tests.

About plugin

  • Plugin page: list-plugins
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Sep 20, 2011
  • Latest release: Apr 18, 2016
  • Number of updates: 64
  • Update frequency: every 26.1 days
  • Top authors: sedLex (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /7,678 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/list-plugins/core.class.php+1698
    Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor

Server metrics [RAM: ▼1.30MB] [CPU: ▼56.27ms] Passed 4 tests

Analyzing server-side resources used by List Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.68 ▼0.787.16 ▼40.66
Dashboard /wp-admin2.70 ▼0.609.82 ▼45.48
Posts /wp-admin/edit.php2.70 ▼0.657.14 ▼44.15
Add New Post /wp-admin/post-new.php2.70 ▼3.188.10 ▼94.80
Media Library /wp-admin/upload.php2.70 ▼0.5310.71 ▼29.02

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

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • You have illegally modified 3 files (0.74KB) outside of "wp-content/plugins/list-plugins/" and "wp-content/uploads/"
    • (new file) wp-content/sedlex/inline_styles/0908d7edaef1ebdf72942395a73a6c079af8e39b.css
    • (new file) wp-content/sedlex/inline_styles/9547635bd96ab4fb2dca58bfb2145e23ce0dd72b.css
    • (new file) wp-content/sedlex/inline_scripts/.empty
Filesystem: 162 new files
Database: no new tables, 9 new options
New WordPress options
listplugins_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
plugin_error_on_activation
coreSLframework_options
theysaidso_admin_options

Browser metrics Passed 4 tests

List Plugins: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.011.72 ▼0.1343.98 ▼1.61
Dashboard /wp-admin2,222 ▲455.54 ▼0.0482.37 ▼7.5142.71 ▲1.73
Posts /wp-admin/edit.php2,130 ▲271.98 ▼0.0239.50 ▼0.4536.69 ▼1.84
Add New Post /wp-admin/post-new.php1,548 ▲2023.44 ▲0.19682.84 ▲2.0061.59 ▲3.26
Media Library /wp-admin/upload.php1,427 ▲274.24 ▲0.03102.53 ▲7.2644.81 ▼0.08
About... /wp-admin/sedlex.php260.420.0714.22
List Plugins /wp-admin/sedlex.php?page=list-plugins/list-plugins.php260.420.167.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/list-plugins/core.class.php+1698
    Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • plugin_error_on_activation
    • can_compress_scripts
    • coreSLframework_options
    • listplugins_options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/list-plugins/core.php
    • > /wp-content/plugins/list-plugins/core.class.php
    • > /wp-content/plugins/list-plugins/list-plugins.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/list-plugins/core/templates/my-plugin.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/list-plugins/core/templates/my-plugin.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/sedlex.php
    • > Network (severe)
    wp-admin/sedlex.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/sedlex.php?page=list-plugins/list-plugins.php
    • > Network (severe)
    wp-admin/sedlex.php?page=list-plugins/list-plugins.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 an image for screenshot #1 (The configuration page of the plugin)
The official readme.txt is a good inspiration

list-plugins/list-plugins.php 92% from 13 tests

The primary PHP file in "List Plugins" version 1.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 486 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin16,705 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PO File333,89708,508
PHP199041,6666,780
JavaScript6217253823
CSS119113479
Markdown120084
JSON10029
INI2002

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 119)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity50.00
▷ Minimum class complexity1.00
▷ Maximum class complexity211.00
Average method complexity7.42
▷ Minimum method complexity1.00
▷ Maximum method complexity119.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods145
▷ Static methods3524.14%
▷ Public methods14297.93%
▷ Protected methods32.07%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
34 PNG files occupy 0.42MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/img/tab_trad.png0.90KB1.08KB0.00%
core/img/tree_node_minus.png0.14KB0.12KB▼ 15.17%
img/icon-256x256.png54.48KB23.38KB▼ 57.08%
core/img/tree_vline.png0.12KB0.08KB▼ 32.52%
core/img/tree_lastnode_minus.png0.14KB0.12KB▼ 13.89%