84% list-all-posts-by-authors-nested-categories-and-titles

Code Review | List all posts by Authors, nested Categories and Titles

WordPress plugin List all posts by Authors, nested Categories and Titles scored84%from 54 tests.

About plugin

  • Plugin page: list-all-posts-by...
  • Plugin version: 2.7.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2014
  • Latest release: Jun 27, 2023
  • Number of updates: 99
  • Update frequency: every 31.8 days
  • Top authors: fmarzocca (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /23,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.02ms] Passed 4 tests

Server-side resources used by List all posts by Authors, nested Categories and Titles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0835.35 ▼0.36
Dashboard /wp-admin3.39 ▲0.0946.36 ▲0.13
Posts /wp-admin/edit.php3.44 ▲0.0946.82 ▲1.94
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.71 ▼13.50
Media Library /wp-admin/upload.php3.31 ▲0.0935.49 ▲1.64
ACT List Shortcodes /wp-admin/tools.php?page=ACT_shortcode_helper3.2733.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for List all posts by Authors, nested Categories and Titles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.29 ▼1.081.72 ▼0.0840.51 ▲0.22
Dashboard /wp-admin2,207 ▲195.83 ▲0.95107.90 ▲0.7939.18 ▼4.66
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0439.14 ▲2.5536.02 ▼3.16
Add New Post /wp-admin/post-new.php1,541 ▲1323.11 ▼0.03672.61 ▼6.8471.47 ▲7.75
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0799.99 ▼9.8045.82 ▼1.48
ACT List Shortcodes /wp-admin/tools.php?page=ACT_shortcode_helper1,0311.7429.8260.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/list-all-posts-by-authors-nested-categories-and-titles/list-all-posts-by-ACT.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
4 plugin tags: titles, authors, posts, nested categories

list-all-posts-by-authors-nested-categories-and-titles/list-all-posts-by-ACT.php 85% from 13 tests

The main PHP file in "List all posts by Authors, nested Categories and Titles" ver. 2.7.10 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("list-all-posts-by-authors-nested-categories-and-titles.php" instead of "list-all-posts-by-ACT.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,072 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS2988542
PHP39460482
JavaScript25048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected