83% product-tagger

Code Review | Product Tagger

WordPress plugin Product Tagger scored 83% from 54 tests.

About plugin

  • Plugin page: product-tagger
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: May 15, 2019
  • Number of updates: 28
  • Update frequency: every 48.7 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.30ms] Passed 4 tests

A check of server-side resources used by Product Tagger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.88 ▼6.72
Dashboard /wp-admin3.31 ▲0.0143.93 ▲0.50
Posts /wp-admin/edit.php3.36 ▲0.0150.91 ▲5.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.27 ▼6.43
Media Library /wp-admin/upload.php3.24 ▲0.0135.20 ▼0.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Product Tagger: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.391.72 ▼0.3640.86 ▼8.90
Dashboard /wp-admin2,206 ▲185.90 ▲1.00105.74 ▲4.7038.56 ▼2.50
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0140.87 ▲0.3336.06 ▼1.27
Add New Post /wp-admin/post-new.php1,537 ▼023.09 ▼0.14678.08 ▲10.4657.71 ▼1.91
Media Library /wp-admin/upload.php1,388 ▲34.30 ▲0.1497.65 ▼2.2041.51 ▼0.02

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/product-tagger/product-tagger.php:105

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === product-tagger === )
Please take inspiration from this readme.txt

product-tagger/product-tagger.php 69% from 13 tests

"Product Tagger" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("-")
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "5.0")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path should be prefixed with a forward slash character ("/-")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1293739

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin