84% tagbee-automatic-post-tagging

Code Review | TagΒee Post Tagger

WordPress plugin TagΒee Post Tagger scored 84% from 54 tests.

About plugin

  • Plugin page: tagbee-automatic-...
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: Apr 10, 2023
  • Number of updates: 40
  • Update frequency: every 40.4 days
  • Top authors: tagbee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲116.20ms] Passed 4 tests

Analyzing server-side resources used by TagΒee Post Tagger
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.62 ▼3.77
Dashboard /wp-admin3.43 ▲0.13230.80 ▲185.49
Posts /wp-admin/edit.php3.48 ▲0.13208.67 ▲160.64
Add New Post /wp-admin/post-new.php5.95 ▲0.06236.37 ▲138.43
Media Library /wp-admin/upload.php3.29 ▲0.06201.57 ▲169.48

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

TagΒee Post Tagger: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.71 ▼0.871.58 ▼0.4639.22 ▼3.23
Dashboard /wp-admin2,232 ▲415.86 ▲0.9895.91 ▼4.9940.72 ▼7.49
Posts /wp-admin/edit.php2,115 ▲262.03 ▲0.0541.80 ▲1.4436.15 ▼0.66
Add New Post /wp-admin/post-new.php1,561 ▲2321.21 ▼2.20627.40 ▲47.4462.58 ▲3.82
Media Library /wp-admin/upload.php1,417 ▲264.35 ▲0.1197.50 ▼1.2944.32 ▲0.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tagbee-automatic-post-tagging/tagbee-post-tagger.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: tags, auto tags, tagging, posts, seo

tagbee-automatic-post-tagging/tagbee-post-tagger.php 92% from 13 tests

The main file in "TagΒee Post Tagger" v. 1.0.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tagbee-automatic-post-tagging.php" instead of "tagbee-post-tagger.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected273 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP77798273

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces1
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1062.50%
▷ Protected methods531.25%
▷ Private methods16.25%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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 images were found in this plugin