84% easy-auto-tags

Code Review | Easy auto tags

WordPress plugin Easy auto tags scored84%from 54 tests.

About plugin

  • Plugin page: easy-auto-tags
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Oct 20, 2018
  • Latest release: Jan 27, 2019
  • Number of updates: 5
  • Update frequency: every 22.0 days
  • Top authors: samanehmirrajabi (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /1,704 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 gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼3.23ms] Passed 4 tests

A check of server-side resources used by Easy auto tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2738.51 ▼0.66
Dashboard /wp-admin3.65 ▲0.3546.45 ▼5.38
Posts /wp-admin/edit.php3.70 ▲0.3446.46 ▼0.48
Add New Post /wp-admin/post-new.php6.18 ▲0.3083.42 ▼6.40
Media Library /wp-admin/upload.php3.51 ▲0.2837.19 ▲2.31

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy auto tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.62 ▼1.121.66 ▼0.2340.46 ▼5.11
Dashboard /wp-admin2,226 ▲385.83 ▲0.9195.67 ▼15.2339.44 ▼2.28
Posts /wp-admin/edit.php2,112 ▲262.03 ▼0.0240.92 ▲4.0336.28 ▲1.92
Add New Post /wp-admin/post-new.php6,236 ▲4,69425.93 ▲7.64864.50 ▲200.3458.72 ▲0.37
Media Library /wp-admin/upload.php1,414 ▲294.17 ▼0.0597.86 ▼1.6444.23 ▼1.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-auto-tags/easy-auto-tags.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Settings page), #2 (Output at post screen)
You can take inspiration from this readme.txt

easy-auto-tags/easy-auto-tags.php Passed 13 tests

Analyzing the main PHP file in "Easy auto tags" version 1.2
58 characters long description:
Generate post tags from post title and content with Google

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
Good job! No executable or dangerous file extensions detected1,715 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22052981,503
CSS10066
SVG11057
PO File1172350
JavaScript12039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity163.50
▷ Minimum class complexity130.00
▷ Maximum class complexity197.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png40.32KB19.43KB▼ 51.80%
assets/banner-772x250.png43.55KB24.32KB▼ 44.17%
screenshot-1.png13.49KB7.33KB▼ 45.68%