84% galaksion-tag-manager

Code Review | Galaksion Tag Manager

WordPress plugin Galaksion Tag Manager scored84%from 54 tests.

About plugin

  • Plugin page: galaksion-tag-man...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Jul 30, 2020
  • Number of updates: 8
  • Update frequency: every 3.6 days
  • Top authors: galaksion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.03ms] Passed 4 tests

A check of server-side resources used by Galaksion Tag Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.09 ▼3.97
Dashboard /wp-admin3.45 ▲0.1150.13 ▼19.20
Posts /wp-admin/edit.php3.50 ▲0.1551.14 ▼1.60
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.67 ▼11.36
Media Library /wp-admin/upload.php3.31 ▲0.0838.16 ▲1.67
Scripts /wp-admin/options-general.php?page=glxtm_scripts3.4143.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
glxtm_welcome_shown
glxtm_rate_time
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Galaksion Tag Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲5213.31 ▼1.381.69 ▼0.4642.08 ▼1.68
Dashboard /wp-admin2,226 ▲414.98 ▼0.90104.71 ▲5.5039.02 ▼0.84
Posts /wp-admin/edit.php2,118 ▲292.31 ▲0.3138.31 ▲1.1934.49 ▲0.35
Add New Post /wp-admin/post-new.php1,541 ▲2023.02 ▼0.19679.28 ▲11.5836.22 ▼13.85
Media Library /wp-admin/upload.php1,405 ▲174.33 ▲0.1199.44 ▼17.5445.15 ▼2.96
Scripts /wp-admin/options-general.php?page=glxtm_scripts9232.0833.6934.13

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\base\\BaseObject' not found in wp-content/plugins/galaksion-tag-manager/core/wp/Settings.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\base\\Widget' not found in wp-content/plugins/galaksion-tag-manager/admin/widgets/itemRow/ItemRow.php:9
    • > PHP Notice
      Trying to get property 'caption' of non-object in wp-content/plugins/galaksion-tag-manager/admin/widgets/itemRow/views/row.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/galaksion-tag-manager/admin/views/item/_modal_edit.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/galaksion-tag-manager/config/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\admin\\AdminController' not found in wp-content/plugins/galaksion-tag-manager/modules/welcome/controllers/MainController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\admin\\AdminController' not found in wp-content/plugins/galaksion-tag-manager/admin/controllers/RateController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\base\\Widget' not found in wp-content/plugins/galaksion-tag-manager/admin/widgets/header/Header.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\validators\\Validator' not found in wp-content/plugins/galaksion-tag-manager/core/validators/RequiredValidator.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'glxtm\\scriptsControl\\core\\base\\BaseObject' not found in wp-content/plugins/galaksion-tag-manager/plugin/Activation.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: galaksion, advertising, ad tag

galaksion-tag-manager/galaksion-tag-manager.php 92% from 13 tests

This is the main PHP file of "Galaksion Tag Manager" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,074 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP585319223,072
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity8.80
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces19
Interfaces1
Traits0
Classes43
▷ Abstract classes613.95%
▷ Concrete classes3786.05%
▷ Final classes00.00%
Methods202
▷ Static methods4321.29%
▷ Public methods18893.07%
▷ Protected methods125.94%
▷ Private methods20.99%
Functions19
▷ Named functions00.00%
▷ Anonymous functions19100.00%
Constants21
▷ Global constants00.00%
▷ Class constants21100.00%
▷ Public constants21100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin