90% tagbot

Code Review | TagBot

WordPress plugin TagBot scored90%from 54 tests.

About plugin

  • Plugin page: tagbot
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Nov 1, 2018
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: tsoumakas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.00ms] Passed 4 tests

This is a short check of server-side resources used by TagBot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.08 ▼2.82
Dashboard /wp-admin3.37 ▲0.0248.11 ▼8.34
Posts /wp-admin/edit.php3.42 ▲0.0647.40 ▲2.45
Add New Post /wp-admin/post-new.php5.99 ▲0.10743.16 ▲648.08
Media Library /wp-admin/upload.php3.29 ▲0.0635.20 ▲0.72
Keyphrases /wp-admin/edit-tags.php?taxonomy=keyphrases3.2836.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TagBot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,143 ▲39714.43 ▲0.0411.61 ▲9.9743.42 ▲4.81
Dashboard /wp-admin2,407 ▲2155.19 ▲0.23108.94 ▼1.4740.02 ▼4.83
Posts /wp-admin/edit.php2,295 ▲2062.31 ▲0.3141.12 ▲4.8829.79 ▼8.39
Add New Post /wp-admin/post-new.php1,543 ▲2423.66 ▲0.77644.20 ▼9.2253.97 ▲5.65
Media Library /wp-admin/upload.php1,627 ▲2394.44 ▲0.3299.92 ▲1.4941.35 ▼1.99
Keyphrases /wp-admin/edit-tags.php?taxonomy=keyphrases1,4022.0339.4730.68

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: artificial intelligence, auto tagging, ai, keyphrase extraction

tagbot/tagbot.php Passed 13 tests

Analyzing the main PHP file in "TagBot" version 1.0.0
110 characters long description:
Automatically tag posts with keyphrases extracted from the content of the posts using artificial intelligence.

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
There were no executable files found in this plugin11,979 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS521,8389,026
SVG1002,671
PHP65360279
JavaScript2023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin