84% unlimited-lists-widget

Code Review | Unlimited Lists Widget

WordPress plugin Unlimited Lists Widget scored84%from 54 tests.

About plugin

  • Plugin page: unlimited-lists-w...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2012
  • Latest release: Aug 8, 2015
  • Number of updates: 11
  • Update frequency: every 94.6 days
  • Top authors: austyfrosty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.56ms] Passed 4 tests

An overview of server-side resources used by Unlimited Lists Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.98 ▼3.06
Dashboard /wp-admin3.32 ▲0.0151.46 ▲0.45
Posts /wp-admin/edit.php3.37 ▲0.0146.07 ▼7.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.63 ▼24.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▲4.01

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
widget_unlimited-lists-widget-unlimitedlists
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlimited Lists Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.011.79 ▲0.0937.14 ▼3.54
Dashboard /wp-admin2,198 ▲205.61 ▼0.0189.64 ▼10.6340.31 ▲0.15
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0037.06 ▼5.7035.53 ▼1.25
Add New Post /wp-admin/post-new.php1,526 ▼023.22 ▼0.32663.46 ▲27.3356.99 ▼0.66
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0294.50 ▼13.8144.82 ▼2.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_unlimited-lists-widget-unlimitedlists
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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: 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 add_action() in wp-content/plugins/unlimited-lists-widget/unlimited-lists.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: widget, widget-only, unlimited lists, ul, li

unlimited-lists-widget/unlimited-lists.php 92% from 13 tests

The main PHP file in "Unlimited Lists Widget" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unlimited-lists-widget.php" instead of "unlimited-lists.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16540168
PO File11012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected