84% listo

Code Review | Listo

WordPress plugin Listo scored84%from 54 tests.

About plugin

  • Plugin page: listo
  • Plugin version: 1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2014
  • Latest release: Aug 8, 2023
  • Number of updates: 66
  • Update frequency: every 51.7 days
  • Top authors: takayukister (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active /99,769 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 successfully, without throwing any errors or notices

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

Server-side resources used by Listo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.14 ▼4.26
Dashboard /wp-admin3.31 ▲0.0053.35 ▼0.41
Posts /wp-admin/edit.php3.36 ▲0.0052.35 ▼0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.15 ▼16.43
Media Library /wp-admin/upload.php3.23 ▲0.0039.01 ▲2.13

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Listo: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.301.76 ▼0.3445.10 ▲3.52
Dashboard /wp-admin2,198 ▲175.62 ▼0.0982.57 ▼24.4239.08 ▼6.23
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0340.26 ▲0.0936.13 ▼1.62
Add New Post /wp-admin/post-new.php1,528 ▲222.99 ▲1.42682.91 ▼26.3965.33 ▲2.72
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.07101.32 ▼12.5645.82 ▼5.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/cr-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/ch-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/ve-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/pl-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/sv-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/in-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/ht-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/do-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/ni-subdivisions.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Listo' not found in wp-content/plugins/listo/modules/time-zones.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: currencies, subdivisions, list, states, countries

listo/listo.php Passed 13 tests

"Listo" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Listo is a simple plugin that supplies commonly used lists to other plugins and themes.

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
Everything looks great! No dangerous files found in this plugin1,545 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP291121501,545

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.10
Average class complexity1.28
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods85
▷ Static methods5868.24%
▷ Public methods5767.06%
▷ Protected methods00.00%
▷ Private methods2832.94%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin