58% wp-fixtag

Code Review | WP FixTag

WordPress plugin WP FixTag scored58%from 54 tests.

About plugin

  • Plugin page: wp-fixtag
  • Plugin version: v2.0.2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 4, 2018
  • Number of updates: 8
  • Update frequency: every 182.8 days
  • Top authors: mohsenshahbazi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,161 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.92MB] [CPU: ▼33.16ms] Passed 4 tests

Server-side resources used by WP FixTag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.65 ▲1.27
Dashboard /wp-admin3.03 ▼0.2831.36 ▼24.96
Posts /wp-admin/edit.php3.03 ▼0.3328.56 ▼20.10
Add New Post /wp-admin/post-new.php3.03 ▼2.8622.63 ▼80.16
Media Library /wp-admin/upload.php3.03 ▼0.2026.96 ▼7.40
تنظیمات /wp-admin/admin.php?page=s3eo_admin3.0322.36
تگ اتوماتیک /wp-admin/admin.php?page=s3eomenu3.0328.00
تگ به دسته بندی /wp-admin/admin.php?page=s3eo_admin_add3.0321.48
درباره افزونه /wp-admin/admin.php?page=s3eo_about3.0321.99

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_3eo_tagbank
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WP FixTag: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.40 ▲0.031.66 ▲0.0848.51 ▲6.47
Dashboard /wp-admin2,269 ▲895.65 ▼0.0088.24 ▲0.7149.33 ▲8.30
Posts /wp-admin/edit.php2,138 ▲381.99 ▼0.0157.17 ▲17.2658.33 ▲23.94
Add New Post /wp-admin/post-new.php1,554 ▲2822.96 ▼0.77663.10 ▼9.4253.56 ▲1.19
Media Library /wp-admin/upload.php1,438 ▲384.13 ▼0.09104.65 ▼11.2156.48 ▲5.47
تنظیمات /wp-admin/admin.php?page=s3eo_admin8411.9626.7839.90
تگ اتوماتیک /wp-admin/admin.php?page=s3eomenu8202.0025.6734.97
تگ به دسته بندی /wp-admin/admin.php?page=s3eo_admin_add8102.0324.1134.26
درباره افزونه /wp-admin/admin.php?page=s3eo_about8261.9924.6351.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables detected upon uninstall: 1 table
    • wp_3eo_tagbank
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
Almost there, just fix the following server-side errors
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=s3eo_about
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/wp-fixtag/s3eo_admin_add.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function splugin_get_version() in wp-content/plugins/wp-fixtag/3eo_about.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-fixtag/s3eo-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-fixtag/3eo_admin_setting.php:51

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: automatic tagging, autotag, wordpress autotag, fix tag, automatic tag

wp-fixtag/s3eo-plugin.php 85% from 13 tests

The principal PHP file in "WP FixTag" v. v2.0.2... is loaded by WordPress automatically on each request
The following require your attention:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v2.0.2...")
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-fixtag.php" instead of "s3eo-plugin.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
No dangerous file extensions were detected472 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP592123433
PO File112539

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin