78% wp-auto-tagging

Code Review | WP Auto Tagging

WordPress plugin WP Auto Tagging scored78%from 54 tests.

About plugin

  • Plugin page: wp-auto-tagging
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: Jun 1, 2016
  • Number of updates: 40
  • Update frequency: every 19.2 days
  • Top authors: smjunaidiqbal (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /14,893 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.05MB] [CPU: ▼2.38ms] Passed 4 tests

A check of server-side resources used by WP Auto Tagging
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.50 ▼0.39
Dashboard /wp-admin3.37 ▲0.0252.78 ▼12.79
Posts /wp-admin/edit.php3.42 ▲0.0650.02 ▲2.67
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.78 ▲0.98
Media Library /wp-admin/upload.php3.30 ▲0.0641.71 ▲10.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Auto Tagging
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.28 ▼1.091.86 ▲0.0839.95 ▲1.08
Dashboard /wp-admin2,222 ▲435.82 ▼0.0698.59 ▼26.0239.91 ▼2.37
Posts /wp-admin/edit.php2,107 ▲181.97 ▼0.2036.19 ▼0.5436.48 ▼1.06
Add New Post /wp-admin/post-new.php1,546 ▲2723.27 ▲0.04652.83 ▼12.0956.20 ▲9.27
Media Library /wp-admin/upload.php1,407 ▲224.29 ▲0.1297.47 ▼6.3746.37 ▼5.24

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

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

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 13
    • > PHP Warning
      Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17
    • > PHP Warning
      mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17
    • > PHP Warning
      mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17
    • > PHP Warning
      Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-auto-tagging/WP-Auto-Tagging.php on line 17

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (2.)
The official readme.txt is a good inspiration

wp-auto-tagging/WP-Auto-Tagging.php 92% from 13 tests

The primary PHP file in "WP Auto Tagging" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-auto-tagging.php" instead of "WP-Auto-Tagging.php")

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
Success! There were no dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1264872

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.30
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%
Functions2
▷ Named functions2100.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