10% automatic-post-tagger

Code Review | Automatic Post Tagger

WordPress plugin Automatic Post Tagger scored10%from 54 tests.

About plugin

  • Plugin page: automatic-post-ta...
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Sep 22, 2012
  • Latest release: Nov 18, 2015
  • Number of updates: 22
  • Update frequency: every 52.4 days
  • Top authors: Devtard (100%)

Code review

54 tests

User reviews

78 reviews

Install metrics

3,000+ active /83,228 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/automatic-post-tagger/automatic-post-tagger.php+173
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.62ms] Passed 4 tests

This is a short check of server-side resources used by Automatic Post Tagger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.11 ▼3.87
Dashboard /wp-admin3.33 ▲0.0344.81 ▼3.95
Posts /wp-admin/edit.php3.38 ▲0.0248.79 ▼1.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.97 ▼12.81
Media Library /wp-admin/upload.php3.25 ▲0.0232.07 ▲0.85
Automatic Post Tagger /wp-admin/options-general.php?page=automatic-post-tagger3.2338.68

Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Post Tagger
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4113.30 ▼1.081.65 ▼0.3042.13 ▼1.84
Dashboard /wp-admin2,218 ▲305.83 ▲0.94100.67 ▼6.2040.95 ▼0.63
Posts /wp-admin/edit.php2,103 ▲112.02 ▼0.0235.09 ▼5.3534.62 ▼1.22
Add New Post /wp-admin/post-new.php6,287 ▲4,76826.06 ▲2.70886.89 ▲206.6275.66 ▲20.69
Media Library /wp-admin/upload.php1,403 ▲154.28 ▲0.1196.14 ▼2.1941.01 ▼4.66
Automatic Post Tagger /wp-admin/options-general.php?page=automatic-post-tagger2,2931.8427.4044.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

automatic-post-tagger/automatic-post-tagger.php Passed 13 tests

The primary PHP file in "Automatic Post Tagger" version 1.8.2 is used by WordPress to initiate all plugin functionality
80 characters long description:
Adds relevant taxonomy terms to posts using a keyword list provided by the user.

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
Success! There were no dangerous files found in this plugin4,207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17377024,040
JavaScript2125108
CSS112059

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/apt-sprite-icons.png1.70KB1.18KB▼ 30.56%