73% post-list-generator

Code Review | Post List Generator

WordPress plugin Post List Generator scored 73% from 54 tests.

About plugin

  • Plugin page: post-list-generator
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Apr 5, 2014
  • Number of updates: 27
  • Update frequency: every 55.4 days
  • Top authors: hidaka.bizplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 10,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.22ms] Passed 4 tests

This is a short check of server-side resources used by Post List Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.32 ▼3.29
Dashboard /wp-admin3.37 ▲0.0645.67 ▼0.36
Posts /wp-admin/edit.php3.48 ▲0.1347.71 ▼2.32
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.45 ▲0.05
Media Library /wp-admin/upload.php3.29 ▲0.0630.76 ▼2.92
Post List設定 /wp-admin/options-general.php?page=post-list-generator/post-list-generator.php3.2530.48

Server storage [IO: ▲0.02MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
post_list_options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post List Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲11914.03 ▼0.275.67 ▲3.4943.49 ▲7.17
Dashboard /wp-admin2,210 ▲284.85 ▼0.05108.05 ▲3.3944.19 ▼3.03
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0140.12 ▼1.2039.15 ▲2.47
Add New Post /wp-admin/post-new.php1,539 ▲623.18 ▲0.06654.48 ▲50.2954.61 ▲1.88
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0797.69 ▼0.4644.21 ▲1.35
Post List設定 /wp-admin/options-general.php?page=post-list-generator/post-list-generator.php9242.0723.1380.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • post_list_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=post-list-generator/post-list-generator.php
    • > Notice in wp-content/plugins/post-list-generator/admin-ui.php+80
    Undefined index: plg_dateformat

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/post-list-generator/post-list-view.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/post-list-generator/post-list-view.php on line 12
    • > PHP Notice
      Trying to get property 'has_next' of non-object in wp-content/plugins/post-list-generator/post-list-view.php on line 12
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/post-list-generator/post-list-view.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-list-generator/post-list-generator.php:53
    • > PHP Notice
      Trying to get property 'items' of non-object in wp-content/plugins/post-list-generator/post-list-view.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PLG' not found in wp-content/plugins/post-list-generator/admin-view.php:9
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/post-list-generator/post-list-view.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

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

The principal PHP file in "Post List Generator" v. 1.3.0 is loaded by WordPress automatically on each request
78 characters long description:
記事(投稿・固定ページの一覧を作成するプラグインです

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
No dangerous file extensions were detected344 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43617260
CSS11042
JavaScript11042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods416.67%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin