84% posts-list-plus

Code Review | Custom List Plus

WordPress plugin Custom List Plus scored84%from 54 tests.

About plugin

  • Plugin page: posts-list-plus
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0.13+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4+
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Dec 23, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tomfp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /384 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Custom List Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.90 ▼5.75
Dashboard /wp-admin3.32 ▼0.0349.89 ▼15.64
Posts /wp-admin/edit.php3.37 ▲0.0150.62 ▼6.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.68 ▼9.14
Media Library /wp-admin/upload.php3.24 ▲0.0138.97 ▲4.28

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom List Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.48 ▼0.161.83 ▼0.1941.26 ▼0.67
Dashboard /wp-admin2,203 ▲155.77 ▼0.13103.94 ▼4.6640.04 ▼1.88
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0238.94 ▼1.5136.50 ▼0.10
Add New Post /wp-admin/post-new.php6,185 ▲4,66318.92 ▼4.49922.95 ▲313.7558.35 ▼0.64
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.00107.39 ▲9.5548.57 ▲4.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/posts-list-plus/plugin.php

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: tech, banners, list, custom list, promotion...

posts-list-plus/plugin.php 92% from 13 tests

"Custom List Plus" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("posts-list-plus.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin278 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2123193
Sass3183188
PHP2186352
CSS932045

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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 images were found in this plugin