10% daknetcorp-auto-tag-category

Code Review | Daknetcorp Auto Tag Category

WordPress plugin Daknetcorp Auto Tag Category scored10%from 54 tests.

About plugin

  • Plugin page: daknetcorp-auto-t...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Jun 26, 2020
  • Number of updates: 15
  • Update frequency: every 112.3 days
  • Top authors: truongthanhtungitvn (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active /3,637 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php+3
    Use of undefined constant DAKNETCORP_FILTERED_POST - assumed 'DAKNETCORP_FILTERED_POST' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.68MB] [CPU: ▼60.08ms] Passed 4 tests

Server-side resources used by Daknetcorp Auto Tag Category
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.155.31 ▼43.84
Dashboard /wp-admin2.33 ▼0.976.82 ▼49.72
Posts /wp-admin/edit.php2.33 ▼1.037.79 ▼41.54
Add New Post /wp-admin/post-new.php2.33 ▼3.566.34 ▼105.21
Media Library /wp-admin/upload.php2.33 ▼0.905.40 ▼32.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Daknetcorp Auto Tag Category
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.46 ▼0.701.80 ▼0.3546.23 ▲4.18
Dashboard /wp-admin2,237 ▲495.18 ▼0.69109.47 ▼19.37107.64 ▲57.67
Posts /wp-admin/edit.php2,116 ▲272.36 ▲0.3251.30 ▲8.6338.06 ▲0.67
Add New Post /wp-admin/post-new.php1,712 ▲17922.31 ▼0.77738.81 ▲92.9144.52 ▼15.61
Media Library /wp-admin/upload.php1,428 ▲404.55 ▲0.35107.09 ▼0.3381.77 ▲34.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php+3
    Use of undefined constant DAKNETCORP_FILTERED_POST - assumed 'DAKNETCORP_FILTERED_POST' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant DAKNETCORP_FILTERED_POST - assumed 'DAKNETCORP_FILTERED_POST' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 3
    • > PHP Warning
      Use of undefined constant DAKNETCORP_AUTO_TAG_CATEGORY_SETTING - assumed 'DAKNETCORP_AUTO_TAG_CATEGORY_SETTING' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 5
    • > PHP Warning
      Use of undefined constant DAKNETCORP_FILTERED_TAG - assumed 'DAKNETCORP_FILTERED_TAG' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php:7
    • > PHP Warning
      Use of undefined constant DAKNETCORP_AUTO_TAG_CATEGORY_SETTING - assumed 'DAKNETCORP_AUTO_TAG_CATEGORY_SETTING' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 5
    • > PHP Warning
      Use of undefined constant DAKNETCORP_FILTERED_TAG - assumed 'DAKNETCORP_FILTERED_TAG' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 4
    • > PHP Warning
      Use of undefined constant DAKNETCORP_FILTERED_POST - assumed 'DAKNETCORP_FILTERED_POST' (this will throw an Error in a future version of PHP) in wp-content/plugins/daknetcorp-auto-tag-category/daknetcorp-auto-tag-category-admin.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: auto category, categories, filter, auto tag, tag

daknetcorp-auto-tag-category/daknetcorp-auto-tag-category.php Passed 13 tests

The principal PHP file in "Daknetcorp Auto Tag Category" v. 1.1 is loaded by WordPress automatically on each request
28 characters long description:
Daknetcorp Auto Tag Category

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,261 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS5230752,441
PHP2166771,278
JavaScript48763519
SVG10023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/remove.png2.85KB0.18KB▼ 93.83%
images/edit.png3.21KB0.54KB▼ 83.06%
images/add.png0.75KB0.78KB0.00%
images/icona.png3.70KB1.21KB▼ 67.37%
images/icon-daknetcorp.png1.84KB1.28KB▼ 30.43%