78% pis-tag-manager

Code Review | PIS Tag Manager

WordPress plugin PIS Tag Manager scored78%from 54 tests.

About plugin

  • Plugin page: pis-tag-manager
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: May 4, 2023
  • Number of updates: 31
  • Update frequency: every 1.8 days
  • Top authors: pisoftek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.09ms] Passed 4 tests

Server-side resources used by PIS Tag Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1746.17 ▲6.97
Dashboard /wp-admin3.47 ▲0.1747.90 ▲1.11
Posts /wp-admin/edit.php3.59 ▲0.2353.14 ▲1.98
Add New Post /wp-admin/post-new.php6.07 ▲0.1884.88 ▼10.65
Media Library /wp-admin/upload.php3.40 ▲0.1638.29 ▲3.22
Settings /wp-admin/admin.php?page=pis-tag-manager-settings3.3632.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for PIS Tag Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.59 ▼0.697.02 ▲5.2946.65 ▲3.42
Dashboard /wp-admin2,222 ▲335.85 ▲0.90105.15 ▼10.5838.24 ▼2.22
Posts /wp-admin/edit.php2,102 ▲132.05 ▲0.0539.42 ▲2.3535.23 ▼0.64
Add New Post /wp-admin/post-new.php1,528 ▲1423.44 ▲5.90643.52 ▼38.0869.88 ▲16.60
Media Library /wp-admin/upload.php1,404 ▲224.15 ▼0.0593.23 ▼4.4740.82 ▼5.00
Settings /wp-admin/admin.php?page=pis-tag-manager-settings7962.0624.8123.86

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pis-tag-manager/public/partials/pis-tag-manager-public-display.php
    • > /wp-content/plugins/pis-tag-manager/admin/partials/pis-tag-manager-admin-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pis-tag-manager/admin/partials/pis-tag-manager-admin-settings-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === pis-tag-manager === )
Please take inspiration from this readme.txt

pis-tag-manager/pis-tag-manager.php Passed 13 tests

The main PHP script in "PIS Tag Manager" version 1.0.2 is automatically included on every request by WordPress
70 characters long description:
This plugin is used to enhanced commerce activity by PI Softek Limited

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected641 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13228654635
JavaScript27536
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected