84% wp-autotags

Code Review | WP AutoTags

WordPress plugin WP AutoTags scored84%from 54 tests.

About plugin

  • Plugin page: wp-autotags
  • Plugin version: 0.1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2015
  • Latest release: May 12, 2020
  • Number of updates: 10
  • Update frequency: every 169.5 days
  • Top authors: yzhs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /21,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.38ms] Passed 4 tests

A check of server-side resources used by WP AutoTags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.38 ▼2.64
Dashboard /wp-admin3.34 ▲0.0450.82 ▼1.11
Posts /wp-admin/edit.php3.39 ▲0.0449.17 ▼4.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.16 ▼21.29
Media Library /wp-admin/upload.php3.27 ▲0.0439.18 ▼0.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
wp_aatags_opts
widget_theysaidso_widget
wp_aatags_aadnumber

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP AutoTags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.68 ▲0.121.82 ▲0.2543.61 ▲1.51
Dashboard /wp-admin2,195 ▲155.62 ▼0.0490.23 ▲1.5642.16 ▼3.43
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0435.64 ▼6.4435.75 ▼1.48
Add New Post /wp-admin/post-new.php1,526 ▼1223.14 ▼0.13642.65 ▼14.1552.55 ▼3.73
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.03101.73 ▼7.2746.49 ▼0.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-autotags/wp-autotags.php:152

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 32 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-autotags/wp-autotags.php 92% from 13 tests

The primary PHP file in "WP AutoTags" version 0.1.14 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 370 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12213125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin