73% post-list-designer

Code Review | Posts List Designer by Category - List Category Posts Or Recent Posts

WordPress plugin Posts List Designer by Category - List Category Posts Or Recent Posts scored73%from 54 tests.

About plugin

  • Plugin page: post-list-designer
  • Plugin version: 3.3.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 45
  • Update frequency: every 45.6 days
  • Top authors: pluginandplay (95.56%)wponlinesupport (6.67%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /24,857 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.04MB] [CPU: ▲20.41ms] 75% from 4 tests

This is a short check of server-side resources used by Posts List Designer by Category - List Category Posts Or Recent Posts
The following require your attention
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.93 ▲5.4761.94 ▲19.75
Dashboard /wp-admin8.95 ▲5.6071.49 ▲9.56
Posts /wp-admin/edit.php8.95 ▲5.5977.92 ▲35.18
Add New Post /wp-admin/post-new.php9.38 ▲3.49106.94 ▲19.63
Media Library /wp-admin/upload.php8.95 ▲5.7265.67 ▲32.68
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9560.18

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 209 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
fs_debug_mode
widget_theysaidso_widget
db_upgraded
fs_accounts
widget_recent-posts
fs_active_plugins
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Posts List Designer by Category - List Category Posts Or Recent Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7414.10 ▼0.131.72 ▲0.0929.45 ▼15.17
Dashboard /wp-admin2,224 ▲445.53 ▼0.1399.78 ▲1.7647.90 ▲5.54
Posts /wp-admin/edit.php2,130 ▲272.03 ▲0.0740.92 ▲3.8639.39 ▲0.63
Add New Post /wp-admin/post-new.php1,542 ▲1622.89 ▼0.06648.20 ▼28.2955.21 ▼0.93
Media Library /wp-admin/upload.php1,432 ▲384.17 ▼0.0697.30 ▼41.2643.08 ▼29.32
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0841.6625.4028.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/post-list-designer/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • fs_active_plugins
    • fs_accounts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • fs_debug_mode
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/post-list-designer/templates/archive-list/design-1.php:2
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-1.php on line 3
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-1.php on line 12
    • > PHP Notice
      Undefined variable: show_category in wp-content/plugins/post-list-designer/templates/list/design-2.php on line 14
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-1.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/post-list-designer/templates/ul-list/design-1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/post-list-designer/templates/list/design-2.php:21
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-2.php on line 3
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-2.php on line 2
    • > PHP Notice
      Undefined variable: feat_image in wp-content/plugins/post-list-designer/templates/list/design-2.php on line 12

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

post-list-designer/post-list-designer.php Passed 13 tests

The main file in "Posts List Designer by Category - List Category Posts Or Recent Posts" v. 3.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Display WordPress Post on your website in List, simple/minimal list and archive list view. Display category wise post list as well.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin35,104 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,26617,52334,184
PO File8144192425
Markdown1680214
JavaScript33459194
CSS1412787

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity84.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,283
▷ Static methods19915.51%
▷ Public methods88368.82%
▷ Protected methods171.33%
▷ Private methods38329.85%
Functions111
▷ Named functions111100.00%
▷ Anonymous functions00.00%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/post-list-designer.png4.45KB0.60KB▼ 86.42%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%