10% tag-generator

Code Review | Tag Generator

WordPress plugin Tag Generator scored10%from 54 tests.

About plugin

  • Plugin page: tag-generator
  • Plugin version: 0.1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: May 2, 2013
  • Latest release: Jul 18, 2016
  • Number of updates: 36
  • Update frequency: every 32.6 days
  • Top authors: Nikitian (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

40+ active /7,650 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼54.80ms] Passed 4 tests

Server-side resources used by Tag Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.24 ▼39.60
Dashboard /wp-admin2.25 ▼1.066.84 ▼41.94
Posts /wp-admin/edit.php2.25 ▼1.116.92 ▼41.53
Add New Post /wp-admin/post-new.php2.25 ▼3.647.07 ▼96.13
Media Library /wp-admin/upload.php2.25 ▼0.986.59 ▼28.36
Tag Generator /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb2.256.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tag Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.36 ▼1.283.92 ▲1.8541.30 ▼2.23
Dashboard /wp-admin2,213 ▲224.84 ▼0.03102.16 ▼12.9440.66 ▼4.40
Posts /wp-admin/edit.php2,093 ▲72.01 ▲0.0439.46 ▲1.9036.71 ▲3.79
Add New Post /wp-admin/post-new.php1,549 ▲1218.26 ▼5.06586.77 ▼90.6866.95 ▲16.89
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0199.66 ▼0.2141.99 ▼0.91
Tag Generator /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb7592.0527.4125.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • taggenerator_use_title
    • can_compress_scripts
    • taggenerator_autoTag
    • widget_recent-comments
    • taggenerator_language

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb
    • > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor
    • > GET request to /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-generator/taggenerator.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tag, posts, generate tag, post, tags

tag-generator/taggenerator.php 85% from 13 tests

"Tag Generator" version 0.1.3.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tag-generator.php" instead of "taggenerator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin579 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24879385
PO File282138194

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods15.88%
▷ Private methods423.53%
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
No PNG files were detected