84% soivigol-post-list

Code Review | List of post and other contents

WordPress plugin List of post and other contents scored84%from 54 tests.

About plugin

  • Plugin page: soivigol-post-list
  • Plugin version: 0.2.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Sep 12, 2023
  • Number of updates: 26
  • Update frequency: every 40.9 days
  • Top authors: soivigol (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /903 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
Installer ran successfully

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

This is a short check of server-side resources used by List of post and other contents
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.35 ▼0.49
Dashboard /wp-admin3.36 ▲0.0647.07 ▲0.29
Posts /wp-admin/edit.php3.41 ▲0.0543.98 ▼2.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.58 ▲0.66
Media Library /wp-admin/upload.php3.29 ▲0.0633.38 ▲1.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for List of post and other contents
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.24 ▼0.111.52 ▼0.2836.12 ▼7.97
Dashboard /wp-admin2,195 ▲215.57 ▼0.0088.03 ▲1.0640.31 ▲3.97
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0034.06 ▼2.5433.26 ▼7.10
Add New Post /wp-admin/post-new.php6,197 ▲4,66218.79 ▲0.42901.00 ▲276.2854.51 ▼30.49
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0196.36 ▼3.5441.21 ▼3.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soivigol-post-list/soivigol-post-list.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: block

soivigol-post-list/soivigol-post-list.php 92% from 13 tests

The principal PHP file in "List of post and other contents" v. 0.2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

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
No dangerous file extensions were detected998 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32676489
PHP23945373
Sass2100134
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
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 files were detected