84% simple-auto-tag

Code Review | Simple Auto Tag

WordPress plugin Simple Auto Tag scored84%from 54 tests.

About plugin

  • Plugin page: simple-auto-tag
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Mar 19, 2015
  • Number of updates: 14
  • Update frequency: every 9.6 days
  • Top authors: djjmz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /3,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.75ms] Passed 4 tests

An overview of server-side resources used by Simple Auto Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0252.13 ▲8.06
Dashboard /wp-admin3.32 ▲0.0249.48 ▼5.03
Posts /wp-admin/edit.php3.37 ▲0.0247.82 ▼3.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.96 ▼7.94
Media Library /wp-admin/upload.php3.24 ▲0.0235.98 ▼2.16
S-A-T Settings /wp-admin/options-general.php?page=sat_settings3.2131.89

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Auto Tag
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.381.88 ▼0.1442.23 ▲0.61
Dashboard /wp-admin2,210 ▲255.88 ▲0.0197.96 ▼4.5041.34 ▼2.09
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0333.00 ▼6.4835.96 ▼0.55
Add New Post /wp-admin/post-new.php1,540 ▲723.31 ▲0.06650.08 ▼30.9159.46 ▼4.34
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.0199.94 ▼11.0642.92 ▼4.71
S-A-T Settings /wp-admin/options-general.php?page=sat_settings8152.0327.1722.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-auto-tag/simpleautotag.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: simple, tag, free, post, page...

simple-auto-tag/simpleautotag.php 92% from 13 tests

"Simple Auto Tag" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-auto-tag.php" instead of "simpleautotag.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11875

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions3
▷ Named functions3100.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