84% auto-tag-creator

Code Review | Auto Tag Creator

WordPress plugin Auto Tag Creator scored84%from 54 tests.

About plugin

  • Plugin page: auto-tag-creator
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Sep 12, 2022
  • Number of updates: 5
  • Update frequency: every 137.2 days
  • Top authors: ecreateinfotech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active /19,032 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.22ms] Passed 4 tests

Analyzing server-side resources used by Auto Tag Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.71 ▲0.58
Dashboard /wp-admin3.38 ▲0.0851.40 ▲0.44
Posts /wp-admin/edit.php3.49 ▲0.1456.13 ▲8.22
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.78 ▼0.06
Media Library /wp-admin/upload.php3.30 ▲0.0736.35 ▼1.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Tag Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.19 ▼0.421.71 ▼0.0642.97 ▼1.13
Dashboard /wp-admin2,218 ▲415.63 ▲0.0984.21 ▼5.9640.13 ▼3.40
Posts /wp-admin/edit.php2,120 ▲171.97 ▼0.0435.28 ▼21.4433.31 ▼8.03
Add New Post /wp-admin/post-new.php1,543 ▲1323.09 ▼0.01696.32 ▲77.6375.83 ▲19.78
Media Library /wp-admin/upload.php1,423 ▲234.19 ▼0.0495.58 ▼8.5342.30 ▼6.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-tag-creator/admin/templates/settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: product tag creator, tag generator, tag, post tag creator, tag creator...

auto-tag-creator/ec-auto-tag-creator.php 85% from 13 tests

The principal PHP file in "Auto Tag Creator" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-tag-creator.php" instead of "ec-auto-tag-creator.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected379 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10165361356
JavaScript12022
CSS1141

PHP code Passed 2 tests

A short review 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.24
Average class complexity6.17
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions3
▷ Named functions3100.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