72% qwebmaster-ai-auto-tagger

Code Review | Qwebmaster AI Auto Tagger

WordPress plugin Qwebmaster AI Auto Tagger scored72%from 54 tests.

About plugin

  • Plugin page: qwebmaster-ai-aut...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 13, 2018
  • Latest release: Jul 13, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: qwebmaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.72MB] [CPU: ▼7.31ms] Passed 4 tests

Analyzing server-side resources used by Qwebmaster AI Auto Tagger
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.26 ▲0.21
Dashboard /wp-admin3.10 ▼0.2025.87 ▼24.55
Posts /wp-admin/edit.php3.47 ▲0.1150.35 ▲0.53
Add New Post /wp-admin/post-new.php3.22 ▼2.66485.41 ▲385.66
Media Library /wp-admin/upload.php3.19 ▼0.0428.61 ▼5.42
AI Auto Tagger /wp-admin/edit.php?page=qaiau-auto-tagger3.0927.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qwebmaster AI Auto Tagger
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.60 ▼0.991.81 ▲0.0844.22 ▼0.42
Dashboard /wp-admin2,217 ▲325.87 ▲0.01109.72 ▲3.8345.06 ▲1.46
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0139.77 ▼0.8234.42 ▼2.90
Add New Post /wp-admin/post-new.php1,524 ▲517.69 ▼5.55677.57 ▲73.0754.64 ▲2.21
Media Library /wp-admin/upload.php1,402 ▲174.27 ▲0.0799.99 ▼3.6643.13 ▼0.05
AI Auto Tagger /wp-admin/edit.php?page=qaiau-auto-tagger8162.0425.6526.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?page=qaiau-auto-tagger
    • > Notice in wp-content/plugins/qwebmaster-ai-auto-tagger/ai-auto-tagger.php+115
    Trying to get property 'ID' of non-object

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/qwebmaster-ai-auto-tagger/admin/settings.php:229

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?page=qaiau-auto-tagger
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?page=qaiau-auto-tagger:89:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?page=qaiau-auto-tagger
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

qwebmaster-ai-auto-tagger/ai-auto-tagger.php 92% from 13 tests

The main file in "Qwebmaster AI Auto Tagger" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("qwebmaster-ai-auto-tagger.php" instead of "ai-auto-tagger.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
Good job! No executable or dangerous file extensions detected483 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP244134296
CSS101187

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
There are no PNG files in this plugin