84% automatic-tag-selector

Code Review | Automatic Tag Selector

WordPress plugin Automatic Tag Selector scored84%from 54 tests.

About plugin

  • Plugin page: automatic-tag-sel...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2013
  • Latest release: Jul 23, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: BIOSTALL (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /5,739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.62ms] Passed 4 tests

Server-side resources used by Automatic Tag Selector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.71 ▼4.43
Dashboard /wp-admin3.32 ▼0.0346.82 ▼16.04
Posts /wp-admin/edit.php3.37 ▲0.0149.52 ▼0.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.58 ▼9.66
Media Library /wp-admin/upload.php3.24 ▲0.0138.43 ▲0.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Tag Selector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.42 ▲0.222.05 ▲0.3741.37 ▼3.05
Dashboard /wp-admin2,198 ▲185.55 ▼0.1393.73 ▼3.9639.88 ▲0.29
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0740.12 ▲4.0535.84 ▼3.15
Add New Post /wp-admin/post-new.php1,365 ▼16116.70 ▼6.27548.63 ▼130.7547.88 ▼7.78
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.0095.68 ▼14.4544.37 ▼1.39

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 add_filter() in wp-content/plugins/automatic-tag-selector/automatic-tag-selector.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: automatic tag, post tags, select tags automatically, auto tags, taxonomies...

automatic-tag-selector/automatic-tag-selector.php Passed 13 tests

"Automatic Tag Selector" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
137 characters long description:
Entering tags for posts each time can be tedious. This plugin will look for existing tags within your content and add them automatically.

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
There were no executable files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232978

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected