10% content-tag-list

Code Review | Content Tag List

WordPress plugin Content Tag List scored10%from 54 tests.

About plugin

  • Plugin page: content-tag-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: Oct 23, 2021
  • Number of updates: 5
  • Update frequency: every 119.6 days
  • Top authors: davoodjafary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+16
    Constant CTL_PLUGIN_DIR already defined

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.41ms] Passed 4 tests

An overview of server-side resources used by Content Tag List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.61 ▼51.63
Dashboard /wp-admin2.08 ▼1.235.51 ▼42.48
Posts /wp-admin/edit.php2.08 ▼1.288.26 ▼38.02
Add New Post /wp-admin/post-new.php2.08 ▼3.815.80 ▼89.52
Media Library /wp-admin/upload.php2.08 ▼1.155.43 ▼28.82
Content tag list /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php2.085.89

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

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

Browser metrics Passed 4 tests

Content Tag List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.76 ▼0.612.38 ▲0.1337.55 ▼10.85
Dashboard /wp-admin2,212 ▲244.85 ▼0.99101.36 ▼14.7041.77 ▼1.40
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0241.29 ▲5.1334.42 ▲1.28
Add New Post /wp-admin/post-new.php1,533 ▼023.20 ▲2.09606.43 ▼64.2349.59 ▲4.36
Media Library /wp-admin/upload.php1,397 ▲94.22 ▼0.0094.61 ▼9.6943.08 ▲3.19
Content tag list /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php8162.0325.9926.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+16
    Constant CTL_PLUGIN_DIR already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+16
    Constant CTL_PLUGIN_DIR already defined
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Warning in wp-content/plugins/content-tag-list/includes/functions.php+50
    DOMDocument::loadHTML(): Empty string supplied as input
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+33
    Undefined index: paged
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 1
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 2
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 3
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 4
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 5
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 6
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 7
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 8
    • > GET request to /wp-admin/options-general.php?page=content-tag-list/includes/plugin.php
    • > Notice in wp-content/plugins/content-tag-list/includes/plugin.php+70
    Undefined offset: 9

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected

content-tag-list/index.php 92% from 13 tests

The main PHP file in "Content Tag List" ver. 1.0 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: The principal plugin file should be the same as the plugin slug ("content-tag-list.php" instead of "index.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
No dangerous file extensions were detected145 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32737128
CSS10017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin