84% list-categories

Code Review | List categories

WordPress plugin List categories scored84%from 54 tests.

About plugin

  • Plugin page: list-categories
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2014
  • Latest release: Jan 20, 2023
  • Number of updates: 18
  • Update frequency: every 174.0 days
  • Top authors: fernandobt (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

6,000+ active /58,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by List categories
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.49 ▼3.72
Dashboard /wp-admin3.31 ▲0.0043.41 ▼6.02
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.34 ▼2.71
Media Library /wp-admin/upload.php3.23 ▲0.0032.91 ▼3.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for List categories
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.11 ▼0.121.61 ▼0.3841.50 ▼0.14
Dashboard /wp-admin2,189 ▲115.52 ▼0.1485.33 ▼18.1935.32 ▼14.83
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0339.35 ▲3.8837.09 ▲1.87
Add New Post /wp-admin/post-new.php1,537 ▲818.47 ▼4.61620.79 ▼80.4862.54 ▲6.42
Media Library /wp-admin/upload.php1,400 ▲34.16 ▲0.03100.15 ▼7.9143.63 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/list-categories/list-categories.php:68

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: categories, list, cms

list-categories/list-categories.php Passed 13 tests

The main file in "List categories" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Simple plugin to display categories in any post or page

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 detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162240

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin