78% auto-tag-generator

Code Review | Auto Tag Generator

WordPress plugin Auto Tag Generator scored78%from 54 tests.

About plugin

  • Plugin page: auto-tag-generator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Oct 16, 2013
  • Latest release: Oct 16, 2013
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: fmzac (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /18,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests

Server-side resources used by Auto Tag Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.13 ▼7.59
Dashboard /wp-admin3.33 ▲0.0251.16 ▲2.56
Posts /wp-admin/edit.php3.38 ▲0.0247.32 ▼6.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.46 ▼6.42
Media Library /wp-admin/upload.php3.25 ▲0.0236.56 ▲2.42
Auto Tag Generator /wp-admin/options-general.php?page=fmzac-auto-tag-generator3.1930.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Auto Tag Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.101.87 ▼0.2743.19 ▼3.86
Dashboard /wp-admin2,207 ▲224.88 ▼0.17115.91 ▲8.0343.85 ▼2.15
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0138.41 ▼2.7132.41 ▼4.51
Add New Post /wp-admin/post-new.php1,517 ▼2517.53 ▼0.59659.22 ▼30.3855.01 ▼0.60
Media Library /wp-admin/upload.php1,383 ▼54.23 ▲0.0299.01 ▼2.1541.17 ▼3.25
Auto Tag Generator /wp-admin/options-general.php?page=fmzac-auto-tag-generator6891.566.5622.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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=fmzac-auto-tag-generator
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/auto-tag-generator/fmzac_AutoTagGenerator.php on line 75 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/auto-tag-generator/fmzac_AutoTagGenerator.php(75): do_settings_fields()
    #1 wp-includes/class-wp-hook.php(310): fmzac_AutoTagGenerator->fmzac_option_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-tag-generator/fmzac_AutoTagGenerator.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
3 plugin tags: auto tag, tag, tag generator

auto-tag-generator/fmzac_AutoTagGenerator.php 92% from 13 tests

Analyzing the main PHP file in "Auto Tag Generator" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-tag-generator.php" instead of "fmzac_AutoTagGenerator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1333790

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
activated.png80.47KB33.04KB▼ 58.94%
post.png77.98KB30.74KB▼ 60.58%
install.png82.86KB33.87KB▼ 59.13%
settings.png59.29KB23.78KB▼ 59.90%