90% list-post-one

Code Review | List Posts

WordPress plugin List Posts scored 90% from 54 tests.

About plugin

  • Plugin page: list-post-one
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.2
  • WordPress version: 5.8.1
  • First release: May 27, 2017
  • Latest release: Jan 14, 2022
  • Number of updates: 78
  • Update frequency: every 21.7 days
  • Top authors: photoboxone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by List Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0136.61 ▲7.44
Dashboard /wp-admin3.07 ▲0.0038.40 ▼9.30
Posts /wp-admin/edit.php3.12 ▲0.0135.50 ▼4.11
Add New Post /wp-admin/post-new.php5.43 ▼0.0174.71 ▼728.87
Media Library /wp-admin/upload.php3.01 ▲0.0126.29 ▼3.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
widget_widget_list_box

Browser metrics Passed 4 tests

This is an overview of browser requirements for List Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.62 ▼0.325.02 ▲0.1679.51 ▲5.00
Dashboard /wp-admin2,930 ▲376.10 ▼0.08113.50 ▼18.52163.27 ▼13.10
Posts /wp-admin/edit.php2,737 ▼33.24 ▲0.0260.29 ▼2.61132.12 ▼7.51
Add New Post /wp-admin/post-new.php3,735 ▲1318.61 ▲0.23461.88 ▲28.12156.62 ▼6.11
Media Library /wp-admin/upload.php1,752 ▲35.49 ▼0.02134.71 ▼20.46179.88 ▼11.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_widget_list_box

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: latest news, list posts

list-post-one/index.php 92% from 13 tests

The main PHP script in "List Posts" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("list-post-one.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin169 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23457161
JavaScript1537
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity12.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin