84% sf-generate-tags

Code Review | SF Generate Tags

WordPress plugin SF Generate Tags scored84%from 54 tests.

About plugin

  • Plugin page: sf-generate-tags
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2015
  • Latest release: Mar 23, 2018
  • Number of updates: 24
  • Update frequency: every 46.3 days
  • Top authors: Studiofreya (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /3,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.35ms] Passed 4 tests

A check of server-side resources used by SF Generate Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.45 ▲3.10
Dashboard /wp-admin3.38 ▲0.0856.70 ▲0.87
Posts /wp-admin/edit.php3.43 ▲0.0853.58 ▼2.48
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.66 ▼10.76
Media Library /wp-admin/upload.php3.31 ▲0.0839.43 ▼1.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SF Generate Tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.17 ▼0.181.72 ▲0.0448.21 ▲1.78
Dashboard /wp-admin2,198 ▲185.60 ▼0.0486.39 ▼7.5039.06 ▼7.54
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0036.53 ▼5.0133.02 ▼3.24
Add New Post /wp-admin/post-new.php6,271 ▲4,74521.06 ▼2.03880.12 ▲179.2372.58 ▲15.26
Media Library /wp-admin/upload.php1,406 ▲94.19 ▼0.03100.21 ▼5.9141.96 ▼4.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

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
The following issues need your attention
  • 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/sf-generate-tags/sf-tags.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: attached, admin, tags, images, autotags...

sf-generate-tags/sf-tags.php 92% from 13 tests

The entry point to "SF Generate Tags" version 1.4.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sf-generate-tags.php" instead of "sf-tags.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
There were no executable files found in this plugin304 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36025275
PO File17729

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin